mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-13 17:29:45 +08:00
Merge #1747 Architecture limited module builds fail to build locally
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user