mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 00:34:16 +02:00
[fix][arch] not displaying 'removing' substatus during the upgrade process
This commit is contained in:
@@ -91,13 +91,19 @@ class TransactionStatusHandler(Thread):
|
|||||||
break
|
break
|
||||||
|
|
||||||
if not substatus_found:
|
if not substatus_found:
|
||||||
performed = self.get_performed()
|
if self.pkgs_to_remove > 0:
|
||||||
|
|
||||||
if performed == 0 and self.downloading > 0:
|
|
||||||
self.watcher.change_substatus('')
|
self.watcher.change_substatus('')
|
||||||
elif performed == self.pkgs_to_sync:
|
|
||||||
self.watcher.change_substatus(self.i18n['finishing'].capitalize())
|
if self.pkgs_to_remove == self.removing:
|
||||||
return False
|
return False
|
||||||
|
else:
|
||||||
|
performed = self.get_performed()
|
||||||
|
|
||||||
|
if performed == 0 and self.downloading > 0:
|
||||||
|
self.watcher.change_substatus('')
|
||||||
|
elif performed == self.pkgs_to_sync:
|
||||||
|
self.watcher.change_substatus(self.i18n['finishing'].capitalize())
|
||||||
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user