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: Wed, 04 May 2011 20:05:13
Message-Id: 55a00a199b363cf214c8526f65aa2f939edf73c8.zmedico@gentoo
1 commit: 55a00a199b363cf214c8526f65aa2f939edf73c8
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 27 14:05:24 2011 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Wed May 4 19:27:19 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=55a00a19
7
8 expand_new_virt: eliminate cpv_getkey
9
10 ---
11 pym/_emerge/actions.py | 3 +--
12 1 files changed, 1 insertions(+), 2 deletions(-)
13
14 diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
15 index 7f228a4..ce52d40 100644
16 --- a/pym/_emerge/actions.py
17 +++ b/pym/_emerge/actions.py
18 @@ -1301,8 +1301,7 @@ def expand_new_virt(vardb, atom):
19 while stack:
20 atom = stack.pop()
21 matches = vardb.match(atom)
22 - if not (matches and \
23 - portage.cpv_getkey(matches[-1]).startswith("virtual/")):
24 + if not (matches and matches[-1].startswith("virtual/")):
25 yield atom
26 continue