summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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],