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, 27 Apr 2011 14:05:24 +0000 (07:05 -0700)
pym/_emerge/actions.py

index e4e87da764ec5ca2d8a8cf839cc8ed6c79969b04..c05d7e23d6c93f6015a05a0e96bd2659906688b7 100644 (file)
@@ -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