[bin] fix lists handling in bump_kernel_tag_mods

This commit is contained in:
Fabio Erculiani 2011-11-30 12:32:19 +01:00
parent c27f9ceaf5
commit 5206eeb315

View File

@ -49,7 +49,7 @@ try:
normal_atoms = [] normal_atoms = []
injected_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: for pkg_id in lst:
if keyslot: if keyslot:
atom_str = entropy.dep.remove_tag_from_slot(repo.retrieveKeySlotAggregated(pkg_id)) atom_str = entropy.dep.remove_tag_from_slot(repo.retrieveKeySlotAggregated(pkg_id))
@ -59,7 +59,7 @@ try:
spm_repo = repo.retrieveSpmRepository(pkg_id) spm_repo = repo.retrieveSpmRepository(pkg_id)
if spm_repo is not None: if spm_repo is not None:
atom_str += "::" + spm_repo atom_str += "::" + spm_repo
lst.append(atom_str) dst.append(atom_str)
finally: finally:
srv.shutdown() srv.shutdown()