[arch] fix -> some operations are keeping the wrong substatus during specific scenarios

This commit is contained in:
Vinicius Moreira
2020-12-19 09:45:38 -03:00
parent e46821c4ef
commit 0fc00f752e
2 changed files with 5 additions and 4 deletions

View File

@@ -101,11 +101,11 @@ class TransactionStatusHandler(Thread):
else:
performed = self.get_performed()
if performed == 0 and self.downloading > 0:
self.watcher.change_substatus('')
elif performed == self.pkgs_to_sync:
if performed == self.pkgs_to_sync:
self.watcher.change_substatus(self.i18n['finishing'].capitalize())
return False
else:
self.watcher.change_substatus('')
return True