Updated for install

This commit is contained in:
Dimitris Zlatanidis 2023-04-08 21:49:02 +03:00
parent 586b2f31c0
commit 5de1525d5f

View file

@ -137,14 +137,16 @@ class Slackbuilds(Configs):
and continue to install if the package is upgradable or the --reinstall option
applied.
"""
if not self.utils.is_package_installed(name) and self.mode != 'build':
if self.mode == 'build':
return True
if self.upgrade.is_package_upgradeable(name) and self.mode != 'build':
if not self.utils.is_package_installed(name):
return True
if (self.utils.is_package_installed(name) and self.utils.is_option(self.flag_reinstall, self.flags)
and self.mode != 'build'):
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