diff --git a/module_build_service/scheduler/submit.py b/module_build_service/scheduler/submit.py index 60fc8f81..21e1aa56 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: