Merge #1747 Architecture limited module builds fail to build locally

This commit is contained in:
Brendan Reilly
2022-10-11 13:33:55 +00:00

View File

@@ -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: