summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-05-05 08:58:22 -0700
committerZac Medico <zmedico@gentoo.org>2011-05-05 08:58:22 -0700
commit4602463a7d577c8c4534f2a675182e02ba93e570 (patch)
treea2023ef1a5a72d585573052590cb8db5841533b9
parent31cd3e14b04608ee19b0f12aa18a2864410baf6d (diff)
downloadportage-4602463a7d577c8c4534f2a675182e02ba93e570.tar.gz
portage-4602463a7d577c8c4534f2a675182e02ba93e570.tar.bz2
portage-4602463a7d577c8c4534f2a675182e02ba93e570.zip
emerge: fix misspell suggestion with category
A name collision in the "cp" variable caused it to malfunction.
-rw-r--r--pym/_emerge/depgraph.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 52b92e2aa..47c0232cd 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -3075,9 +3075,8 @@ class depgraph(object):
all_cp.update(bindb.cp_all())
orig_cp_map = {}
- for cp in all_cp:
- cp_lower = cp.lower()
- orig_cp_map.setdefault(cp_lower, []).append(cp)
+ for cp_orig in all_cp:
+ orig_cp_map.setdefault(cp_orig.lower(), []).append(cp_orig)
all_cp = set(orig_cp_map)
if cat: