From 50c2afc6ff46e58cbae193aac96736f845bc5552 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 12 Oct 2007 06:26:39 +0000 Subject: [PATCH] Make portdbapi.aux_get() cache more often. (trunk r8011) svn path=/main/branches/2.1.2/; revision=8069 --- pym/portage.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.26.2