mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Fix: nvidia-kernel Fails to install #46
This commit is contained in:
parent
fda84722bc
commit
6d83355d2c
1 changed files with 6 additions and 8 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Reference in a new issue