Fix: nvidia-kernel Fails to install #46

This commit is contained in:
Dimitris Zlatanidis 2015-10-03 09:37:42 +03:00
parent fda84722bc
commit 6d83355d2c

View file

@ -38,14 +38,13 @@ def slack_package(prgnam):
""" """
binary = "" binary = ""
# Get build number from prgnam.SlackBuild script # Get build number from prgnam.SlackBuild script
build1 = BuildNumber("", "-".join(prgnam.split("-")[:-1])).get() name = "-".join(prgnam.split("-")[:-1])
for pkg in find_package(prgnam + _meta_.sp, _meta_.output): build1 = BuildNumber("", name).get()
name = split_package(pkg[:-4])[0] for pkg in find_package(prgnam, _meta_.output):
ver = split_package(pkg[:-4])[1] name_find = split_package(pkg[:-4])[0]
prgnam_find = "{0}-{1}".format(name, ver)
# Get build number from binary package # Get build number from binary package
build2 = split_package(pkg[:-4])[3] build2 = split_package(pkg[:-4])[3]
if (pkg[:-4].endswith("_SBo") and prgnam_find == prgnam and if (pkg[:-4].endswith("_SBo") and name == name_find and
build1 == build2): build1 == build2):
binary = pkg binary = pkg
break break
@ -56,8 +55,7 @@ def slack_package(prgnam):
def sbo_packages(): def sbo_packages():
""" """Return all SBo packages from /tmp directory
Return all SBo packages from /tmp directory
""" """
packages = [] packages = []
for pkg in os.listdir(_meta_.output): for pkg in os.listdir(_meta_.output):