diff --git a/alibuild_helpers/utilities.py b/alibuild_helpers/utilities.py index 28333fd5..a7d55452 100644 --- a/alibuild_helpers/utilities.py +++ b/alibuild_helpers/utilities.py @@ -468,7 +468,7 @@ def getPackageList(packages, specs, configDir, preferSystem, noSystem, architectureREMatches = re.match(architectureRE, architecture) except: dieOnError(True, "Malformed entry architecture: %s in %s" % (architecture, spec["package"])) - if architectureREMatches == "False": + if not architectureREMatches: disable.append(spec["package"]) # If --always-prefer-system is passed or if prefer_system is set to true