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