From 35735780e67695cfff5351c4f9ddfbbd5184cef5 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Wed, 11 May 2022 16:20:39 +0200 Subject: [PATCH] fix arch processing Related: https://pagure.io/koji/issue/3304 --- cli/koji_cli/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 00e515b4..42213c30 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -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']: