Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:2.1.9 commit in: pym/_emerge/
Date: Thu, 05 May 2011 16:01:36
Message-Id: 62e95606f6000ff133d95d7369de65ad0de25168.zmedico@gentoo
1 commit: 62e95606f6000ff133d95d7369de65ad0de25168
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 16:00:40 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=62e95606
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 b230635..9e7b0bb 100644
18 --- a/pym/_emerge/depgraph.py
19 +++ b/pym/_emerge/depgraph.py
20 @@ -2819,9 +2819,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: