projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a67df8
)
Fix broken dict.get logic.
author
Zac Medico
<zmedico@gentoo.org>
Sat, 26 May 2007 02:41:39 +0000
(
02:41
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 26 May 2007 02:41:39 +0000
(
02:41
-0000)
svn path=/main/trunk/; revision=6634
pym/portage/dbapi/bintree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/bintree.py
b/pym/portage/dbapi/bintree.py
index b2c528dbc7f9a7aa5c3c0ddd36395cb69b19dbc8..c81de292e53c3377f5782f35233e5dead85c78ac 100644
(file)
--- 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 = {}