From 55000abdfb5a9a5da9d7ee17e752cae4a2756e27 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 27 Apr 2011 07:05:24 -0700 Subject: [PATCH] expand_new_virt: eliminate cpv_getkey --- pym/_emerge/actions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index e4e87da76..c05d7e23d 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -1302,8 +1302,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 -- 2.26.2