mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Fixed colors view
This commit is contained in:
parent
77fcb55795
commit
793d34c492
1 changed files with 3 additions and 3 deletions
|
@ -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"]}] -> '
|
||||
|
|
Loading…
Reference in a new issue