pmb.parse.arch: Include comma after last dictionary items
See https://lists.sr.ht/~postmarketos/pmbootstrap-devel/patches/39643#feedback-272128:1018-1194 Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C167883228237.9452.6945199441942129608-0@git.sr.ht%3E
This commit is contained in:
parent
0230f4def2
commit
2f9bdb7a66
|
@ -14,7 +14,7 @@ def alpine_native():
|
||||||
"aarch64": "aarch64",
|
"aarch64": "aarch64",
|
||||||
"arm64": "aarch64",
|
"arm64": "aarch64",
|
||||||
"armv6l": "armhf",
|
"armv6l": "armhf",
|
||||||
"armv7l": "armv7"
|
"armv7l": "armv7",
|
||||||
}
|
}
|
||||||
if machine in mapping:
|
if machine in mapping:
|
||||||
return mapping[machine]
|
return mapping[machine]
|
||||||
|
@ -65,7 +65,7 @@ def alpine_to_kernel(arch):
|
||||||
"arm*": "arm",
|
"arm*": "arm",
|
||||||
"ppc*": "powerpc",
|
"ppc*": "powerpc",
|
||||||
"s390*": "s390",
|
"s390*": "s390",
|
||||||
"riscv64*": "riscv"
|
"riscv64*": "riscv",
|
||||||
}
|
}
|
||||||
for pattern, arch_kernel in mapping.items():
|
for pattern, arch_kernel in mapping.items():
|
||||||
if fnmatch.fnmatch(arch, pattern):
|
if fnmatch.fnmatch(arch, pattern):
|
||||||
|
|
Loading…
Reference in New Issue