mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-16 03:41:11 +01:00
Fixed for installing
This commit is contained in:
parent
58f5dca305
commit
06f26d966e
1 changed files with 8 additions and 5 deletions
|
@ -131,15 +131,18 @@ class Slackbuilds(Configs):
|
|||
and continue to install if the package is upgradable or the --reinstall option
|
||||
applied.
|
||||
"""
|
||||
if self.mode == 'build':
|
||||
return True
|
||||
|
||||
if self.utils.is_option(self.flag_skip_installed, self.flags):
|
||||
if (self.utils.is_option(self.flag_skip_installed, self.flags)
|
||||
and self.mode != 'build' and not self.utils.is_option(self.flag_reinstall, self.flags)):
|
||||
return False
|
||||
|
||||
if self.upgrade.is_package_upgradeable(name) or self.utils.is_option(self.flag_reinstall, self.flags):
|
||||
if self.utils.is_option(self.flag_reinstall, self.flags) and self.mode != 'build':
|
||||
return True
|
||||
|
||||
if not self.upgrade.is_package_upgradeable(name) and self.mode != 'build':
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
def prepare_slackbuilds_for_build(self) -> None:
|
||||
""" Downloads files and sources. """
|
||||
sources_urls: list = []
|
||||
|
|
Loading…
Reference in a new issue