1 |
commit: 4602463a7d577c8c4534f2a675182e02ba93e570 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 5 15:58:22 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 5 15:58:22 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=4602463a |
7 |
|
8 |
emerge: fix misspell suggestion with category |
9 |
|
10 |
A name collision in the "cp" variable caused it to malfunction. |
11 |
|
12 |
--- |
13 |
pym/_emerge/depgraph.py | 5 ++--- |
14 |
1 files changed, 2 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py |
17 |
index 52b92e2..47c0232 100644 |
18 |
--- a/pym/_emerge/depgraph.py |
19 |
+++ b/pym/_emerge/depgraph.py |
20 |
@@ -3075,9 +3075,8 @@ class depgraph(object): |
21 |
all_cp.update(bindb.cp_all()) |
22 |
|
23 |
orig_cp_map = {} |
24 |
- for cp in all_cp: |
25 |
- cp_lower = cp.lower() |
26 |
- orig_cp_map.setdefault(cp_lower, []).append(cp) |
27 |
+ for cp_orig in all_cp: |
28 |
+ orig_cp_map.setdefault(cp_orig.lower(), []).append(cp_orig) |
29 |
all_cp = set(orig_cp_map) |
30 |
|
31 |
if cat: |