diff --git a/slpkg/views/views.py b/slpkg/views/views.py index 279d2a10..253f38b2 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -122,15 +122,13 @@ class ViewMessage(Configs): size: str = self.utils.convert_file_sizes( int(''.join(re.findall(r'\d+', self.data[package]['size_comp'])))) - if mode == 'upgrade': - color: str = self.violet - package: str = self.build_package_and_version(package) - if installed: color: str = self.grey + if upgradable: color: str = self.violet package: str = self.build_package_and_version(package) + if installed and self.option_for_reinstall and not upgradable: color: str = self.violet package: str = self.build_package_and_version(package)