Fix continue install sbo packages if death link

This commit is contained in:
Dimitris Zlatanidis 2016-02-17 06:18:42 +02:00
parent 2720963730
commit 154923165f
3 changed files with 15 additions and 12 deletions

View file

@ -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)

View file

@ -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)]

View file

@ -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