mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-07 08:46:21 +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
|
and continue to install if the package is upgradable or the --reinstall option
|
||||||
applied.
|
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):
|
if not self.utils.is_package_installed(name):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if not self.upgrade.is_package_upgradeable(name):
|
if self.upgrade.is_package_upgradeable(name):
|
||||||
return False
|
return True
|
||||||
|
|
||||||
return True
|
return False
|
||||||
|
|
||||||
def checksum(self) -> None:
|
def checksum(self) -> None:
|
||||||
""" Packages checksums. """
|
""" Packages checksums. """
|
||||||
|
|
Loading…
Add table
Reference in a new issue