From: Zac Medico Date: Sun, 5 Jun 2011 09:15:54 +0000 (-0700) Subject: match-all-cpv-only: share match-all cache when ok X-Git-Tag: v2.2.0_alpha38~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a9d57bfab26b7c9cff433017a3d3579c8aa501df;p=portage.git match-all-cpv-only: share match-all cache when ok --- 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,