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:
Daniele Debernardi 2020-03-14 15:49:43 +01:00 committed by Oliver Smith
parent 2933b57f5d
commit 45f5ace1c2
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 2 additions and 1 deletions

View File

@ -259,7 +259,8 @@ def kconfig(args):
packages.sort()
for package in packages:
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")
if "!pmb:kconfigcheck" in apkbuild["options"]:
skipped += 1