menuconfig: don't require --arch to match APKBUILD (MR 1985)

Do not verify that the architecture passed with --arch is part of the
arch variable in APKBUILD. This prepares to set 'arch=""' to temporarily
disable building packages. Users will still be able to run "pmbootstrap
menuconfig" on them by manually specifying the architecture.
This commit is contained in:
Oliver Smith 2020-10-11 14:44:52 +02:00 committed by Luca Weiss
parent 13b96df350
commit e43ef5c22e
No known key found for this signature in database
GPG Key ID: 72D843B89D4DD756
1 changed files with 1 additions and 5 deletions

View File

@ -34,11 +34,7 @@ def get_arch(args, apkbuild):
" architecture.")
return args.arch
# Single architecture (--arch must be unset or match)
if args.arch is None or args.arch == apkbuild["arch"][0]:
return apkbuild["arch"][0]
raise RuntimeError("Package '" + pkgname + "' only supports the '" +
apkbuild["arch"][0] + "' architecture.")
return apkbuild["arch"][0]
def get_outputdir(args, pkgname, apkbuild):