Fix deprecated usage of dep_getkey(). Thanks to Sebastian Mingramm (few) v2.1.7.9
authorZac Medico <zmedico@gentoo.org>
Sat, 28 Nov 2009 22:18:29 +0000 (22:18 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 28 Nov 2009 22:18:29 +0000 (22:18 -0000)
for reporting. (trunk r14915)

svn path=/main/branches/2.1.7/; revision=14918

pym/portage/__init__.py

index e0c88813af1fb2189422079f37df647bd5c4c735..c138a3ec041a9936cc9b397ff2fd1136ad9a80e6 100644 (file)
@@ -2823,7 +2823,7 @@ class config(object):
        def _getUseMask(self, pkg):
                cp = getattr(pkg, "cp", None)
                if cp is None:
-                       cp = dep_getkey(pkg)
+                       cp = cpv_getkey(dep.remove_slot(pkg))
                usemask = []
                pos = 0
                for i, pusemask_dict in enumerate(self.pusemask_list):
@@ -2846,7 +2846,7 @@ class config(object):
        def _getUseForce(self, pkg):
                cp = getattr(pkg, "cp", None)
                if cp is None:
-                       cp = dep_getkey(pkg)
+                       cp = cpv_getkey(dep.remove_slot(pkg))
                useforce = []
                pos = 0
                for i, puseforce_dict in enumerate(self.puseforce_list):