From 06f26d966e94d59fc0af7294ca5d444e4e6894bc Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 2 Apr 2023 20:26:00 +0300 Subject: [PATCH] Fixed for installing --- slpkg/sbos/slackbuild.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/slpkg/sbos/slackbuild.py b/slpkg/sbos/slackbuild.py index 40dd258a..10802585 100644 --- a/slpkg/sbos/slackbuild.py +++ b/slpkg/sbos/slackbuild.py @@ -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 = []