Allow the list of keys cached by the vardb to change without forcing a cache version...
authorZac Medico <zmedico@gentoo.org>
Thu, 28 Dec 2006 14:32:48 +0000 (14:32 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 28 Dec 2006 14:32:48 +0000 (14:32 -0000)
svn path=/main/trunk/; revision=5405

pym/portage.py

index 16d99a955dee8e97a897bdcd1035ed38d9b21183..f2b11876c646aae16cd2dbc71ab65226d9b548f7 100644 (file)
@@ -5047,6 +5047,10 @@ class vardbapi(dbapi):
                if pkg_data:
                        cache_mtime, metadata = pkg_data
                        cache_valid = cache_mtime == mydir_mtime
+                       if cache_valid and set(metadata) != self._aux_cache_keys:
+                               # Allow self._aux_cache_keys to change without a cache version
+                               # bump.
+                               cache_valid = False
                if cache_valid:
                        mydata.update(metadata)
                        pull_me = set(wants).difference(self._aux_cache_keys)