From 995f8e68c296a3f46e3bb5af9408e10a9456bcbc Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Apr 22 2020 11:39:09 +0000 Subject: fix chain iteration Fixes: https://pagure.io/koji/issue/2037 --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 21deae9..e85d137 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -6717,7 +6717,7 @@ def handle_untag_build(goptions, session, args): for pkg in pkgs: tagged.append(m.listTagged(args[0], package=pkg)) # flatten - tagged = list(itertools.chain([t.result[0] for t in tagged])) + tagged = list(itertools.chain(*[t.result for t in tagged])) idx = dict([(b['nvr'], b) for b in tagged]) # check exact builds