From 84518ce34d336abf719cbba30bf8fdde40e538da Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Sat, 20 Nov 2021 10:51:50 -0300 Subject: [PATCH] [view.core.controller] fix: install/uninstall logs --- bauh/view/core/controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bauh/view/core/controller.py b/bauh/view/core/controller.py index 16a74eb9..4617718f 100755 --- a/bauh/view/core/controller.py +++ b/bauh/view/core/controller.py @@ -327,7 +327,7 @@ class GenericSoftwareManager(SoftwareManager): return TransactionResult(success=False, installed=[], removed=[]) finally: tf = time.time() - self.logger.info('Uninstallation of {}'.format(pkg) + 'took {0:.2f} minutes'.format((tf - ti) / 60)) + self.logger.info(f'Uninstallation of {pkg} took {(tf - ti) / 60:.2f} minutes') def install(self, app: SoftwarePackage, root_password: str, disk_loader: DiskCacheLoader, handler: ProcessWatcher) -> TransactionResult: man = self._get_manager_for(app) @@ -348,7 +348,7 @@ class GenericSoftwareManager(SoftwareManager): return TransactionResult(success=False, installed=[], removed=[]) finally: tf = time.time() - self.logger.info('Installation of {}'.format(app) + 'took {0:.2f} minutes'.format((tf - ti)/60)) + self.logger.info(f'Installation of {app} took {(tf - ti) / 60:.2f} minutes') def get_info(self, app: SoftwarePackage): man = self._get_manager_for(app)