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

pym/_emerge/depgraph.py

index 70089c6d826ef01d6f88ae67617e9310597d51e9..fc44b357fece169212402819de609f0cee33f0aa 100644 (file)
@@ -1576,7 +1576,7 @@ class depgraph(object):
                                                print(colorize("BAD", "\n*** You need to adjust PORTDIR or PORTDIR_OVERLAY to emerge this package.\n"))
                                                return 0, myfavorites
                                        if mykey not in portdb.xmatch(
-                                               "match-visible", portage.dep_getkey(mykey)):
+                                               "match-visible", portage.cpv_getkey(mykey)):
                                                print(colorize("BAD", "\n*** You are emerging a masked package. It is MUCH better to use"))
                                                print(colorize("BAD", "*** /etc/portage/package.* to accomplish this. See portage(5) man"))
                                                print(colorize("BAD", "*** page for details."))