Updated if statement

This commit is contained in:
Dimitris Zlatanidis 2023-01-13 20:59:43 +02:00
parent 53bab6d884
commit c692ebdc34

View file

@ -41,11 +41,9 @@ class ViewMessage:
def view_packages(self, package, version, mode):
""" Printing the main packages. """
color = ''
if mode == 'install':
color = self.cyan
if self.utils.is_installed(package):
color = self.grey
color = self.cyan
if mode == 'install' and self.utils.is_installed(package):
color = self.grey
if mode == 'remove':
color = self.red
if mode == 'build':