Make portdbapi.aux_get() cache more often. (trunk r8011)
authorZac Medico <zmedico@gentoo.org>
Fri, 12 Oct 2007 06:26:39 +0000 (06:26 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 12 Oct 2007 06:26:39 +0000 (06:26 -0000)
svn path=/main/branches/2.1.2/; revision=8069

pym/portage.py

index b7ca0a4a433c79ea34096b887c3c1963384bf34c..e58188f7d11c6e69455c8eac325be40b46d6956d 100644 (file)
@@ -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: