mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-07 08:46:21 +01:00
Updated for install
This commit is contained in:
parent
586b2f31c0
commit
5de1525d5f
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue