From bcb62004ca49d67520b119ae91c16b76a05ad42a Mon Sep 17 00:00:00 2001 From: Brendan Reilly Date: Oct 11 2022 13:33:55 +0000 Subject: Merge #1747 `Architecture limited module builds fail to build locally` --- diff --git a/module_build_service/scheduler/submit.py b/module_build_service/scheduler/submit.py index 60fc8f8..21e1aa5 100644 --- a/module_build_service/scheduler/submit.py +++ b/module_build_service/scheduler/submit.py @@ -132,7 +132,9 @@ def _check_buildopts_arches(mmd, arches): return arches # Must be a subset of the input module arches unsupported_arches = set(buildopts_arches) - set(arches) - if unsupported_arches: + # If there are unsupported architectures, and the local one is one of them, + # then we should fail, otherwise continue. + if unsupported_arches and set(arches) in unsupported_arches: raise ValidationError("The following buildopts arches are not supported with these " "buildrequires: %r" % unsupported_arches) if buildopts_arches: