From 960080a868ff77c29d6de620392f40fe9ad531b7 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 20 Jan 2023 20:43:05 +0200 Subject: [PATCH] Updated for view --- slpkg/views/views.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/slpkg/views/views.py b/slpkg/views/views.py index 2153d24c..0348474f 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -39,26 +39,15 @@ class ViewMessage(Configs): def view_packages(self, package, version, mode): """ Printing the main packages. """ - is_installed = self.utils.is_installed(package) - inst_ver = self.utils.split_installed_pkg(is_installed)[1] + color = self.red - color = self.cyan - if mode == 'install' and is_installed: - color = self.grey - if mode == 'install' and self.flag_reinstall in self.flags and is_installed: - color = self.yellow - if mode == 'install' and self.utils.is_repo_version_bigger(package): - color = self.violet - if mode == 'remove': - color = self.red + if mode == 'install': + color = self.cyan if mode == 'build': color = self.yellow if mode == 'upgrade': color = self.violet - if inst_ver: - package = f'{package}-{inst_ver}' - self.ascii.draw_view_package(package, version, color) def view_skipping_packages(self, sbo, version):