Fixed colors view

This commit is contained in:
Dimitris Zlatanidis 2022-06-20 19:01:37 +03:00
parent 77fcb55795
commit 793d34c492

View file

@ -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"]}] -> '