Switch to utils

This commit is contained in:
Dimitris Zlatanidis 2022-12-17 17:22:13 +02:00
parent 36ec8c8ff0
commit 88d9979f80

View file

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