parent
4203fbee14
commit
35735780e6
1 changed files with 2 additions and 2 deletions
|
|
@ -1131,14 +1131,14 @@ 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 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.forcearch' in buildcfg['extra']:
|
||||
if bool(buildcfg['extra']['mock.forcearch']):
|
||||
opts['forcearch'] = options.arch
|
||||
opts['forcearch'] = 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