From 5206eeb3158ea677f5b9a9157cb8862dea3e70b4 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 30 Nov 2011 12:32:19 +0100 Subject: [PATCH] [bin] fix lists handling in bump_kernel_tag_mods --- bin/bump_kernel_tag_mods | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/bump_kernel_tag_mods b/bin/bump_kernel_tag_mods index 77577c2..705ae5e 100755 --- a/bin/bump_kernel_tag_mods +++ b/bin/bump_kernel_tag_mods @@ -49,7 +49,7 @@ try: normal_atoms = [] injected_atoms = [] - for lst in (normal_pkgs, injected_pkgs): + for lst, dst in ((normal_pkgs, normal_atoms), (injected_pkgs, injected_atoms)): for pkg_id in lst: if keyslot: atom_str = entropy.dep.remove_tag_from_slot(repo.retrieveKeySlotAggregated(pkg_id)) @@ -59,7 +59,7 @@ try: spm_repo = repo.retrieveSpmRepository(pkg_id) if spm_repo is not None: atom_str += "::" + spm_repo - lst.append(atom_str) + dst.append(atom_str) finally: srv.shutdown()