kernel changed seperator for flavours from . to + update regular expression
This commit is contained in:
parent
5efe03f3e8
commit
7d3fafedf3
@ -266,7 +266,7 @@ def findkernels(root="/", kdir="boot"):
|
|||||||
# To find possible flavors, awk '/BuildKernel/ { print $4 }' kernel.spec
|
# To find possible flavors, awk '/BuildKernel/ { print $4 }' kernel.spec
|
||||||
flavors = ('debug', 'PAE', 'PAEdebug', 'smp', 'xen', 'lpae', 'tegra')
|
flavors = ('debug', 'PAE', 'PAEdebug', 'smp', 'xen', 'lpae', 'tegra')
|
||||||
kre = re.compile(r"vmlinuz-(?P<version>.+?\.(?P<arch>[a-z0-9_]+)"
|
kre = re.compile(r"vmlinuz-(?P<version>.+?\.(?P<arch>[a-z0-9_]+)"
|
||||||
r"(\.(?P<flavor>{0}))?)$".format("|".join(flavors)))
|
r"(.(?P<flavor>{0}))?)$".format("|".join(flavors)))
|
||||||
kernels = []
|
kernels = []
|
||||||
bootfiles = os.listdir(joinpaths(root, kdir))
|
bootfiles = os.listdir(joinpaths(root, kdir))
|
||||||
for f in bootfiles:
|
for f in bootfiles:
|
||||||
|
Loading…
Reference in New Issue
Block a user