From: Zac Medico Date: Tue, 2 Mar 2010 20:37:23 +0000 (-0000) Subject: Fix deprecated usage of dep_getkey. (trunk r15383) X-Git-Tag: v2.1.8~112 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1b2cf53f9222596feae4592468bc9905eb8b1e15;p=portage.git Fix deprecated usage of dep_getkey. (trunk r15383) svn path=/main/branches/2.1.7/; revision=15610 --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 1e7816287..70089c6d8 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -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],