mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-31 10:26:39 +01:00
Fix continue install sbo packages if death link
This commit is contained in:
parent
2720963730
commit
154923165f
3 changed files with 15 additions and 12 deletions
|
@ -79,6 +79,8 @@ class BuildPackage(object):
|
|||
if not self.auto:
|
||||
os.chdir(self._SOURCES)
|
||||
for src in self.sources:
|
||||
if not os.path.isfile(src):
|
||||
continue
|
||||
# fix build sources with spaces
|
||||
src = src.replace("%20", " ")
|
||||
check_md5(self.sbo_md5[src], src)
|
||||
|
|
|
@ -43,5 +43,5 @@ def slack_package(prgnam):
|
|||
cache = binary
|
||||
if not binary:
|
||||
Msg().build_FAILED(prgnam)
|
||||
raise SystemExit()
|
||||
# raise SystemExit()
|
||||
return ["".join(_meta_.output + binary)]
|
||||
|
|
|
@ -335,15 +335,16 @@ class SBoInstall(object):
|
|||
BuildPackage(script, sources, self.build_folder,
|
||||
auto=False).build()
|
||||
binary = slack_package(prgnam)
|
||||
if GetFromInstalled(pkg).name() == pkg:
|
||||
print("[ {0}Upgrading{1} ] --> {2}".format(
|
||||
self.meta.color["YELLOW"],
|
||||
self.meta.color["ENDC"], prgnam))
|
||||
upgraded.append(prgnam)
|
||||
else:
|
||||
print("[ {0}Installing{1} ] --> {2}".format(
|
||||
self.meta.color["GREEN"],
|
||||
self.meta.color["ENDC"], prgnam))
|
||||
installs.append(prgnam)
|
||||
PackageManager(binary).upgrade(flag="--install-new")
|
||||
if os.path.isfile("".join(binary)):
|
||||
if GetFromInstalled(pkg).name() == pkg:
|
||||
print("[ {0}Upgrading{1} ] --> {2}".format(
|
||||
self.meta.color["YELLOW"],
|
||||
self.meta.color["ENDC"], prgnam))
|
||||
upgraded.append(prgnam)
|
||||
else:
|
||||
print("[ {0}Installing{1} ] --> {2}".format(
|
||||
self.meta.color["GREEN"],
|
||||
self.meta.color["ENDC"], prgnam))
|
||||
installs.append(prgnam)
|
||||
PackageManager(binary).upgrade(flag="--install-new")
|
||||
return installs, upgraded
|
||||
|
|
Loading…
Reference in a new issue