mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for install
This commit is contained in:
parent
5b90b8834a
commit
9406ab301e
1 changed files with 3 additions and 10 deletions
|
@ -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. """
|
||||
|
|
Loading…
Add table
Reference in a new issue