From a9d57bfab26b7c9cff433017a3d3579c8aa501df Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 5 Jun 2011 02:15:54 -0700 Subject: match-all-cpv-only: share match-all cache when ok --- pym/portage/dbapi/porttree.py | 4 ++++ 1 file changed, 4 insertions(+) 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, -- cgit v1.2.3-1-g7c22