summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-02-19 10:09:31 +0000
committerZac Medico <zmedico@gentoo.org>2010-02-19 10:09:31 +0000
commitadf196e330f579ae3e0cf1d1d3ab393f89b319bd (patch)
tree50bc0a0971bf0624a9cc9ce4a15e46e2e0e89a3d
parent66af3f95142b71423fcb185d452ff7ded2d9d060 (diff)
downloadportage-adf196e330f579ae3e0cf1d1d3ab393f89b319bd.tar.gz
portage-adf196e330f579ae3e0cf1d1d3ab393f89b319bd.tar.bz2
portage-adf196e330f579ae3e0cf1d1d3ab393f89b319bd.zip
Fix deprecated usage of dep_getkey.
svn path=/main/trunk/; revision=15383
-rw-r--r--pym/_emerge/depgraph.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 42e5deeef..3549000cf 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],