projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92e5a54
)
match-all-cpv-only: share match-all cache when ok
author
Zac Medico
<zmedico@gentoo.org>
Sun, 5 Jun 2011 09:15:54 +0000
(
02:15
-0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 5 Jun 2011 09:15:54 +0000
(
02:15
-0700)
pym/portage/dbapi/porttree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/porttree.py
b/pym/portage/dbapi/porttree.py
index 394a57c81061a29de2517f153fa1d93c83049d12..33c6a3b1d93e7fe89eb86402cf6f26743d836526 100644
(file)
--- a/
pym/portage/dbapi/porttree.py
+++ b/
pym/portage/dbapi/porttree.py
@@
-814,6
+814,10
@@
class portdbapi(dbapi):
# to bypass unnecessary cache access for things like IUSE
# and SLOT.
if mydep == mykey:
+ # Share cache with match-all/cp_list when the result is the
+ # same. Note that this requires that mydep.repo is None and
+ # thus mytree is also None.
+ level = "match-all"
myval = self.cp_list(mykey, mytree=mytree)
else:
myval = match_from_list(mydep,