From: Zac Medico Date: Fri, 12 Oct 2007 06:26:39 +0000 (-0000) Subject: Make portdbapi.aux_get() cache more often. (trunk r8011) X-Git-Tag: v2.1.3.16~46 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=50c2afc6ff46e58cbae193aac96736f845bc5552;p=portage.git Make portdbapi.aux_get() cache more often. (trunk r8011) svn path=/main/branches/2.1.2/; revision=8069 --- diff --git a/pym/portage.py b/pym/portage.py index b7ca0a4a4..e58188f7d 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6201,6 +6201,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: