summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dbapi/bintree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 98bc8ddef..1b9367da1 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -46,7 +46,7 @@ class bindbapi(fakedbapi):
if not self.bintree._remotepkgs or \
not self.bintree.isremote(mycpv):
tbz2_path = self.bintree.getname(mycpv)
- if not os.path.exists(mycpv):
+ if not os.path.exists(tbz2_path):
raise KeyError(mycpv)
getitem = portage.xpak.tbz2(tbz2_path).getfile
else: