Merge pull request #7396 from marcin-/master

dkms: fix get version
This commit is contained in:
marcin
2020-01-08 21:15:28 +01:00
committed by GitHub
+1 -1
View File
@@ -37,7 +37,7 @@ def check_dkms(metapath, filepath, action):
# build if package has /usr/src/*/dkms.conf
if path.endswith("/dkms.conf") and path.startswith("usr/src/"):
name = path.split("/")[-2].split("-")[0]
version = path.split("/")[-2].split("-")[1]
version = path.split("/")[-2].split("-")[-1]
kver = get_kver()
arch = piksemel.parse(metapath).getTag("Package").getTagData("Architecture").replace("_", "-")
run_dkms(action, name, version, kver, arch)