diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-12 06:26:39 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-12 06:26:39 +0000 |
commit | 50c2afc6ff46e58cbae193aac96736f845bc5552 (patch) | |
tree | ecf8ad947235e3fa4d6163754b8adc51978aeda0 /pym | |
parent | a6664c92c561ae1322837ad8d89c3eeb3b0428f5 (diff) | |
download | portage-50c2afc6ff46e58cbae193aac96736f845bc5552.tar.gz portage-50c2afc6ff46e58cbae193aac96736f845bc5552.tar.bz2 portage-50c2afc6ff46e58cbae193aac96736f845bc5552.zip |
Make portdbapi.aux_get() cache more often. (trunk r8011)
svn path=/main/branches/2.1.2/; revision=8069
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |