From e43ef5c22e055ffdf7a385aa53573f735d58139d Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 11 Oct 2020 14:44:52 +0200 Subject: [PATCH] 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. --- pmb/build/menuconfig.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pmb/build/menuconfig.py b/pmb/build/menuconfig.py index 24224796..4f7416e0 100644 --- a/pmb/build/menuconfig.py +++ b/pmb/build/menuconfig.py @@ -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):