summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/bintree.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index b2c528dbc..c81de292e 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -402,8 +402,10 @@ class binarytree(object):
# Validate data from the package index and try to avoid
# reading the xpak if possible.
if mydir != "All":
- mycpv = mydir + "/" + myfile[:-5]
- possibilities = [metadata.get(mycpv)]
+ possibilities = None
+ d = metadata.get(mydir+"/"+myfile[:-5])
+ if d:
+ possibilities = [d]
else:
if pf_index is None:
pf_index = {}