Fix deprecated usage of dep_getkey.
authorZac Medico <zmedico@gentoo.org>
Fri, 19 Feb 2010 10:09:31 +0000 (10:09 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 19 Feb 2010 10:09:31 +0000 (10:09 -0000)
svn path=/main/trunk/; revision=15383

pym/_emerge/depgraph.py

index 42e5deeef3dd562878fb0a9269115afb0efe96ab..3549000cfc0db5a675a6e6d799a594ee5d52a444 100644 (file)
@@ -4408,9 +4408,7 @@ class depgraph(object):
                                        # assign index for a previous version in the same slot
                                        has_previous = False
                                        repo_name_prev = None
-                                       slot_atom = "%s:%s" % (portage.dep_getkey(pkg_key),
-                                               metadata["SLOT"])
-                                       slot_matches = vardb.match(slot_atom)
+                                       slot_matches = vardb.match(pkg.slot_atom)
                                        if slot_matches:
                                                has_previous = True
                                                repo_name_prev = vardb.aux_get(slot_matches[0],