From 4999da05ae1b873129f257a795014e88a7018992 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Oct 25 2017 10:31:31 +0000 Subject: fix unreachable code --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 31733cb..844fbe6 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -936,7 +936,8 @@ def anon_handle_mock_config(goptions, session, args): opts['repoid'] = brootinfo['repo_id'] opts['tag_name'] = brootinfo['tag_name'] arch = brootinfo['arch'] - def_name = "%s-task_%i" % (opts['tag_name'], task_id) + if not options.name: + options.name = "%s-task_%i" % (opts['tag_name'], task_id) elif options.tag: if not options.arch: print(_("Please specify an arch")) @@ -958,7 +959,6 @@ def anon_handle_mock_config(goptions, session, args): print(_("Could not get a repo for tag: %(name)s") % tag) return 1 opts['repoid'] = repo['id'] - def_name = "%(tag_name)s-repo_%(repoid)s" % opts elif options.target: if not options.arch: print(_("Please specify an arch"))