Fix deprecated usage of dep_getkey. (trunk r15382)
authorZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 20:35:20 +0000 (20:35 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 20:35:20 +0000 (20:35 -0000)
svn path=/main/branches/2.1.7/; revision=15609

pym/portage/__init__.py

index cee402c320253b61fa175d2b481e5010b28a1d1e..7b8f7b1b72dfaa00474376fa7bd4bd9343360f19 100644 (file)
@@ -2626,7 +2626,7 @@ class config(object):
                has_changed = False
                self.mycpv = mycpv
                cat, pf = catsplit(mycpv)
-               cp = dep_getkey(mycpv)
+               cp = cpv_getkey(mycpv)
                cpv_slot = self.mycpv
                pkginternaluse = ""
                iuse = ""
@@ -3071,7 +3071,7 @@ class config(object):
                @return: A list of licenses that have not been accepted.
                """
                accept_license = self._accept_license
-               cpdict = self._plicensedict.get(dep_getkey(cpv), None)
+               cpdict = self._plicensedict.get(cpv_getkey(cpv), None)
                if cpdict:
                        accept_license = list(self._accept_license)
                        cpv_slot = "%s:%s" % (cpv, metadata["SLOT"])
@@ -3150,7 +3150,7 @@ class config(object):
                @return: A list of properties that have not been accepted.
                """
                accept_properties = self._accept_properties
-               cpdict = self._ppropertiesdict.get(dep_getkey(cpv), None)
+               cpdict = self._ppropertiesdict.get(cpv_getkey(cpv), None)
                if cpdict:
                        accept_properties = list(self._accept_properties)
                        cpv_slot = "%s:%s" % (cpv, metadata["SLOT"])