emerge: fix misspell suggestion with category
authorZac Medico <zmedico@gentoo.org>
Thu, 5 May 2011 15:58:22 +0000 (08:58 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 5 May 2011 15:58:22 +0000 (08:58 -0700)
A name collision in the "cp" variable caused it to malfunction.

pym/_emerge/depgraph.py

index 52b92e2aab18e327693ee80a9f21616f7e142878..47c0232cd08876e1ca3a3ea1958cb1cff83c12d8 100644 (file)
@@ -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: