mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
[fix][arch] wrong upgrade substatus in some scenarios
This commit is contained in:
@@ -22,6 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- Arch
|
||||
- not stopping the upgrade process if a transaction error happens
|
||||
- search not displaying installed packages that are no longer available on the databases ( e.g: indicator-application )
|
||||
- wrong upgrade substatus in some scenarios
|
||||
- wrong dialog titles
|
||||
- AppImage
|
||||
- not detecting some updates ( e.g: RPCS3 )
|
||||
|
||||
@@ -46,8 +46,6 @@ class TransactionStatusHandler(Thread):
|
||||
self.watcher.change_substatus('{}[{}/{}] {} {}'.format(perc, self.downloading, self.npkgs,
|
||||
self.i18n['downloading'].capitalize(), output.split(' ')[1].strip()))
|
||||
elif output.startswith('upgrading'):
|
||||
self.downloading = self.npkgs # to avoid wrong numbers the packages are cached
|
||||
|
||||
if self.get_performed() < self.npkgs:
|
||||
perc = self.gen_percentage()
|
||||
self.upgrading += 1
|
||||
@@ -56,10 +54,8 @@ class TransactionStatusHandler(Thread):
|
||||
|
||||
if performed <= self.npkgs:
|
||||
self.watcher.change_substatus('{}[{}/{}] {} {}'.format(perc, self.upgrading, self.npkgs,
|
||||
self.i18n['manage_window.status.upgrading'].capitalize(), output.split(' ')[1].strip()))
|
||||
self.i18n['manage_window.status.upgrading'].capitalize(), output.split(' ')[1].strip()))
|
||||
elif output.startswith('installing'):
|
||||
self.downloading = self.npkgs # to avoid wrong numbers the packages are cached
|
||||
|
||||
if self.get_performed() < self.npkgs:
|
||||
perc = self.gen_percentage()
|
||||
self.installing += 1
|
||||
|
||||
Reference in New Issue
Block a user