kojid: permit forcing the target arch within mock per tag

This commit is contained in:
Pat Riehecky 2022-03-04 16:07:47 -06:00 committed by Tomas Kopecek
parent a50ca237c7
commit 4203fbee14
4 changed files with 10 additions and 0 deletions

View file

@ -1136,6 +1136,9 @@ def anon_handle_mock_config(goptions, session, args):
warn("Tag %s has an empty arch list" % opts['tag_name'])
elif arch not in buildcfg['arches']:
warn('%s is not in the list of tag arches' % arch)
if 'mock.forcearch' in buildcfg['extra']:
if bool(buildcfg['extra']['mock.forcearch']):
opts['forcearch'] = options.arch
if 'mock.package_manager' in buildcfg['extra']:
opts['package_manager'] = buildcfg['extra']['mock.package_manager']
if 'mock.yum.module_hotfixes' in buildcfg['extra']: