summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index d07089a42..ce1072f78 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -4408,8 +4408,7 @@ class fakedbapi(dbapi):
if mycpv != cpv:
other_metadata = self.cpvdict[cpv]
if other_metadata:
- other_slot = metadata.get("SLOT", None)
- if myslot == other_slot:
+ if myslot == other_metadata.get("SLOT", None):
self.cpv_remove(cpv)
break
if mycp not in self.cpdict: