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:
parent
13b96df350
commit
e43ef5c22e
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue