summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-06-05 02:15:54 -0700
committerZac Medico <zmedico@gentoo.org>2011-06-05 02:15:54 -0700
commita9d57bfab26b7c9cff433017a3d3579c8aa501df (patch)
treef1ec887f80988f05554101bc6ea761032f8abcb3
parent92e5a5402074d4cb20c5cc9bd323acaf7a8e211e (diff)
downloadportage-a9d57bfab26b7c9cff433017a3d3579c8aa501df.tar.gz
portage-a9d57bfab26b7c9cff433017a3d3579c8aa501df.tar.bz2
portage-a9d57bfab26b7c9cff433017a3d3579c8aa501df.zip
match-all-cpv-only: share match-all cache when ok
-rw-r--r--pym/portage/dbapi/porttree.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 394a57c81..33c6a3b1d 100644
--- 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,