From 1b2cf53f9222596feae4592468bc9905eb8b1e15 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 2 Mar 2010 20:37:23 +0000 Subject: [PATCH] Fix deprecated usage of dep_getkey. (trunk r15383) svn path=/main/branches/2.1.7/; revision=15610 --- pym/_emerge/depgraph.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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], -- 2.26.2