From 793d34c492f89fba1527f405f9fb2243d49a578a Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 20 Jun 2022 19:01:37 +0300 Subject: [PATCH] Fixed colors view --- slpkg/views/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slpkg/views/views.py b/slpkg/views/views.py index ed5a52d1..6e303db4 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -88,12 +88,12 @@ class ViewMessage: def _view_install(self, sbo: str, version: str): color = self.colors() - install = 'install' + install, set_color = 'install', color['RED'] if '--reinstall' in self.flags: - install = 'upgrade' + install, set_color = 'upgrade', color['YELLOW'] if self.utils.is_installed(f'{sbo}-{version}-'): - print(f'[{color["YELLOW"]} {install} {color["ENDC"]}] -> ' + print(f'[{set_color} {install} {color["ENDC"]}] -> ' f'{sbo}-{version}') else: print(f'[{color["CYAN"]} install {color["ENDC"]}] -> '