dkms: fix get version
This commit is contained in:
@@ -37,7 +37,7 @@ def check_dkms(metapath, filepath, action):
|
|||||||
# build if package has /usr/src/*/dkms.conf
|
# build if package has /usr/src/*/dkms.conf
|
||||||
if path.endswith("/dkms.conf") and path.startswith("usr/src/"):
|
if path.endswith("/dkms.conf") and path.startswith("usr/src/"):
|
||||||
name = path.split("/")[-2].split("-")[0]
|
name = path.split("/")[-2].split("-")[0]
|
||||||
version = path.split("/")[-2].split("-")[1]
|
version = path.split("/")[-2].split("-")[-1]
|
||||||
kver = get_kver()
|
kver = get_kver()
|
||||||
arch = piksemel.parse(metapath).getTag("Package").getTagData("Architecture").replace("_", "-")
|
arch = piksemel.parse(metapath).getTag("Package").getTagData("Architecture").replace("_", "-")
|
||||||
run_dkms(action, name, version, kver, arch)
|
run_dkms(action, name, version, kver, arch)
|
||||||
|
|||||||
Reference in New Issue
Block a user