[fix][arch] wrong upgrade substatus in some scenarios

This commit is contained in:
Vinicius Moreira
2020-04-24 13:38:50 -03:00
parent 0c3dd2ed2e
commit 274ca2d24b
2 changed files with 2 additions and 5 deletions

View File

@@ -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 )

View File

@@ -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