From: Zac Medico Date: Thu, 28 Dec 2006 14:32:48 +0000 (-0000) Subject: Allow the list of keys cached by the vardb to change without forcing a cache version... X-Git-Tag: v2.1.2~207 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a50c81b472bace52bc6d16cfc4a71bb1d2fdb73e;p=portage.git Allow the list of keys cached by the vardb to change without forcing a cache version bump. svn path=/main/trunk/; revision=5405 --- diff --git a/pym/portage.py b/pym/portage.py index 16d99a955..f2b11876c 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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)