Fixed for installing

This commit is contained in:
Dimitris Zlatanidis 2023-04-02 20:26:00 +03:00
parent 58f5dca305
commit 06f26d966e

View file

@ -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 = []