pmb.parse.apkbuild: remove unused args argument (MR 2136)

This commit is contained in:
BO41 2021-11-09 12:52:10 +01:00 committed by Oliver Smith
parent ce0f1c2d4a
commit 99bed38272
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
22 changed files with 37 additions and 38 deletions

View file

@ -396,7 +396,7 @@ def kconfig(args):
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(f"{aport}/APKBUILD")
if "!pmb:kconfigcheck" in apkbuild["options"]:
skipped += 1
continue
@ -453,7 +453,7 @@ def apkbuild_parse(args):
print(package + ":")
aport = pmb.helpers.pmaports.find(args, package)
path = aport + "/APKBUILD"
print(json.dumps(pmb.parse.apkbuild(args, path), indent=4,
print(json.dumps(pmb.parse.apkbuild(path), indent=4,
sort_keys=True))