From 51d8984c3ac9cff85e70c436cc1d62e28f76b6a0 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Sat, 6 Jun 2020 17:35:40 -0300 Subject: [PATCH] [fix][arch] not displaying 'removing' substatus during the upgrade process --- bauh/gems/arch/output.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/bauh/gems/arch/output.py b/bauh/gems/arch/output.py index 17d68f44..24c78741 100644 --- a/bauh/gems/arch/output.py +++ b/bauh/gems/arch/output.py @@ -91,13 +91,19 @@ class TransactionStatusHandler(Thread): break if not substatus_found: - performed = self.get_performed() - - if performed == 0 and self.downloading > 0: + if self.pkgs_to_remove > 0: self.watcher.change_substatus('') - elif performed == self.pkgs_to_sync: - self.watcher.change_substatus(self.i18n['finishing'].capitalize()) - return False + + if self.pkgs_to_remove == self.removing: + 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