summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-09 09:28:29 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-09 09:28:29 +0000
commit386a74a800015f21934b0e452e25855591c83647 (patch)
tree5f897817ef59f580bf3e4c574b7a4b217ea10e7c /pym
parent757a424094dae1c44f07d28bc8368a7574392d66 (diff)
downloadportage-386a74a800015f21934b0e452e25855591c83647.tar.gz
portage-386a74a800015f21934b0e452e25855591c83647.tar.bz2
portage-386a74a800015f21934b0e452e25855591c83647.zip
Make portdbapi.aux_get() cache more often.
svn path=/main/trunk/; revision=8011
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/porttree.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index d6fd4a172..91b5b488e 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -220,6 +220,8 @@ class portdbapi(dbapi):
'input: "sys-apps/foo-1.0",["SLOT","DEPEND","HOMEPAGE"]'
'return: ["0",">=sys-libs/bar-1.0","http://www.foo.com"] or raise KeyError if error'
cache_me = False
+ if not mytree:
+ cache_me = True
if not mytree and not set(mylist).difference(self._aux_cache_keys):
aux_cache = self._aux_cache.get(mycpv)
if aux_cache is not None: