summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-04-27 07:05:24 -0700
committerZac Medico <zmedico@gentoo.org>2011-05-04 12:27:19 -0700
commit55a00a199b363cf214c8526f65aa2f939edf73c8 (patch)
treee7811e836399fb685b424c82bee49c9ec4623e57 /pym/_emerge
parentba17e2e1eb19612d189f1dbb1280696acc0ac086 (diff)
downloadportage-55a00a199b363cf214c8526f65aa2f939edf73c8.tar.gz
portage-55a00a199b363cf214c8526f65aa2f939edf73c8.tar.bz2
portage-55a00a199b363cf214c8526f65aa2f939edf73c8.zip
expand_new_virt: eliminate cpv_getkey
Diffstat (limited to 'pym/_emerge')
-rw-r--r--pym/_emerge/actions.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index 7f228a4f7..ce52d4067 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -1301,8 +1301,7 @@ def expand_new_virt(vardb, atom):
while stack:
atom = stack.pop()
matches = vardb.match(atom)
- if not (matches and \
- portage.cpv_getkey(matches[-1]).startswith("virtual/")):
+ if not (matches and matches[-1].startswith("virtual/")):
yield atom
continue