Updated for install

This commit is contained in:
Dimitris Zlatanidis 2023-04-08 21:35:38 +03:00
parent 5b90b8834a
commit 9406ab301e

View file

@ -132,20 +132,13 @@ class Packages(Configs):
and continue to install if the package is upgradable or the --reinstall option
applied.
"""
if (self.utils.is_option(self.flag_skip_installed, self.flags)
and not self.utils.is_option(self.flag_reinstall, self.flags)):
return False
if self.utils.is_option(self.flag_reinstall, self.flags):
return True
if not self.utils.is_package_installed(name):
return True
if not self.upgrade.is_package_upgradeable(name):
return False
if self.upgrade.is_package_upgradeable(name):
return True
return True
return False
def checksum(self) -> None:
""" Packages checksums. """