expand_new_virt: eliminate cpv_getkey
authorZac Medico <zmedico@gentoo.org>
Wed, 27 Apr 2011 14:05:24 +0000 (07:05 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 4 May 2011 19:27:19 +0000 (12:27 -0700)
pym/_emerge/actions.py

index 7f228a4f721658bbd081899366b97585b9405124..ce52d406738bb05fe5dcdf64e22a6016982110ca 100644 (file)
@@ -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