mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-19 10:27:07 +01:00
Updated for install
This commit is contained in:
parent
9406ab301e
commit
586b2f31c0
2 changed files with 10 additions and 11 deletions
|
@ -138,6 +138,9 @@ class Packages(Configs):
|
|||
if self.upgrade.is_package_upgradeable(name):
|
||||
return True
|
||||
|
||||
if self.utils.is_package_installed(name) and self.utils.is_option(self.flag_reinstall, self.flags):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
def checksum(self) -> None:
|
||||
|
|
|
@ -137,21 +137,17 @@ class Slackbuilds(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)
|
||||
and self.mode != 'build'):
|
||||
return False
|
||||
|
||||
if self.utils.is_option(self.flag_reinstall, self.flags) and self.mode != 'build':
|
||||
return True
|
||||
|
||||
if not self.utils.is_package_installed(name) and self.mode != 'build':
|
||||
return True
|
||||
|
||||
if not self.upgrade.is_package_upgradeable(name) and self.mode not in ['build', 'upgrade']:
|
||||
return False
|
||||
if self.upgrade.is_package_upgradeable(name) and self.mode != 'build':
|
||||
return True
|
||||
|
||||
return True
|
||||
if (self.utils.is_package_installed(name) and self.utils.is_option(self.flag_reinstall, self.flags)
|
||||
and self.mode != 'build'):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
def prepare_slackbuilds_for_build(self) -> None:
|
||||
""" Downloads files and sources. """
|
||||
|
|
Loading…
Reference in a new issue