Updated for colors

This commit is contained in:
Dimitris Zlatanidis 2023-03-14 22:01:53 +02:00
parent 29ddc89beb
commit ac086f188d

View file

@ -53,7 +53,9 @@ class ViewMessage(Configs):
if mode == 'upgrade':
color: str = self.violet
if package in self.all_installed and mode == 'install':
# If the package is installed and not upgradeable change the color to gray.
if (package in self.all_installed and mode == 'install' and
not self.utils.is_package_upgradeable(package, self.file_pattern)):
color = self.grey
self.ascii.draw_view_package(package, version, color)