parent
56ee7eacc6
commit
0c6f43a9a8
2 changed files with 50 additions and 1 deletions
|
|
@ -1023,6 +1023,11 @@ def anon_handle_mock_config(goptions, session, args):
|
|||
if opts['repoid'] != 'latest':
|
||||
event = session.repoInfo(opts['repoid'])['create_event']
|
||||
buildcfg = session.getBuildConfig(opts['tag_name'], event=event)
|
||||
if options.arch:
|
||||
if not buildcfg['arches']:
|
||||
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.package_manager' in buildcfg['extra']:
|
||||
opts['package_manager'] = buildcfg['extra']['mock.package_manager']
|
||||
if 'mock.yum.module_hotfixes' in buildcfg['extra']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue