forked from Mirror/pmbootstrap
pmb.helpers.frontend: fix wrong package name in kconfig check (!1891)
The kconfig check searches the aport with the "linux-" prefix to the package name passed as argument. This is not working with the full package name like linux-device-name because it searches a linux-linux-device-name and fails.
This commit is contained in:
parent
2933b57f5d
commit
45f5ace1c2
1 changed files with 2 additions and 1 deletions
|
@ -259,7 +259,8 @@ def kconfig(args):
|
||||||
packages.sort()
|
packages.sort()
|
||||||
for package in packages:
|
for package in packages:
|
||||||
if not args.force:
|
if not args.force:
|
||||||
aport = pmb.helpers.pmaports.find(args, "linux-" + package)
|
pkgname = package if package.startswith("linux-") else "linux-" + package
|
||||||
|
aport = pmb.helpers.pmaports.find(args, pkgname)
|
||||||
apkbuild = pmb.parse.apkbuild(args, aport + "/APKBUILD")
|
apkbuild = pmb.parse.apkbuild(args, aport + "/APKBUILD")
|
||||||
if "!pmb:kconfigcheck" in apkbuild["options"]:
|
if "!pmb:kconfigcheck" in apkbuild["options"]:
|
||||||
skipped += 1
|
skipped += 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue