From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QT9UC-00035E-Uf for garchives@archives.gentoo.org; Sun, 05 Jun 2011 09:19:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2B38E1C019; Sun, 5 Jun 2011 09:19:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id F11E91C019 for ; Sun, 5 Jun 2011 09:19:00 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7203B1B400A for ; Sun, 5 Jun 2011 09:19:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id A7A208003C for ; Sun, 5 Jun 2011 09:18:59 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/dbapi/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/dbapi/porttree.py X-VCS-Directories: pym/portage/dbapi/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: a9d57bfab26b7c9cff433017a3d3579c8aa501df Date: Sun, 5 Jun 2011 09:18:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 93422c5fd7375a2429f3c6c7c4ff2033 commit: a9d57bfab26b7c9cff433017a3d3579c8aa501df Author: Zac Medico gentoo org> AuthorDate: Sun Jun 5 09:15:54 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Jun 5 09:15:54 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Da9d57bfa match-all-cpv-only: share match-all cache when ok --- pym/portage/dbapi/porttree.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.p= y index 394a57c..33c6a3b 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 =3D=3D 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 =3D "match-all" myval =3D self.cp_list(mykey, mytree=3Dmytree) else: myval =3D match_from_list(mydep,