mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Switch to utils
This commit is contained in:
parent
36ec8c8ff0
commit
88d9979f80
1 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ class ViewMessage:
|
|||
f'{sbo}-{version}')
|
||||
|
||||
def _view_install(self, sbo: str, version: str):
|
||||
""" View the packages for install. """
|
||||
""" View the packages for install or upgrade. """
|
||||
color = self.colors()
|
||||
|
||||
installed = self.utils.is_installed(sbo)
|
||||
|
@ -131,7 +131,7 @@ class ViewMessage:
|
|||
if installed:
|
||||
print(f'[{set_color} {install} {color["endc"]}] -> '
|
||||
f'{sbo}-{version} {set_color}'
|
||||
f'({installed.split(self.configs.os_arch)[0][:-1].split("-")[-1]})'
|
||||
f'({self.utils.split_installed_pkg(installed)[1]})'
|
||||
f'{color["endc"]}')
|
||||
else:
|
||||
print(f'[{color["cyan"]} install {color["endc"]}] -> '
|
||||
|
|
Loading…
Add table
Reference in a new issue