From 1e833dd68eb2631f2b887c0a74d7ae669fc00b10 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 7 May 2023 17:03:59 +0300 Subject: [PATCH] Updated for list --- slpkg/views/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slpkg/views/views.py b/slpkg/views/views.py index f03388ad..fe8594ed 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -66,13 +66,13 @@ class ViewMessage(Configs): if mode == 'upgrade': color: str = self.violet - if package in self.utils.installed_packages.keys() and mode == 'install': + if package in list(self.utils.installed_packages.keys()) and mode == 'install': color: str = self.grey if self.upgrade.is_package_upgradeable(package) and mode == 'install': color: str = self.violet - if (package in self.utils.installed_packages.keys() and mode == 'install' + if (package in list(self.utils.installed_packages.keys()) and mode == 'install' and self.option_for_reinstall): color: str = self.violet