Only write known keys in flat_hash cache entries (filter out UNUSED_* keys).
authorZac Medico <zmedico@gentoo.org>
Sun, 26 Feb 2006 07:51:21 +0000 (07:51 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 26 Feb 2006 07:51:21 +0000 (07:51 -0000)
svn path=/main/trunk/; revision=2787

pym/cache/flat_hash.py

index 6882afd7e1483e51ae61cffa563e82d48f8713a1..1bdc7cd5b439f9a788a772e277940f01535e6a13 100644 (file)
@@ -81,7 +81,7 @@ class database(fs_template.FsBased):
                        raise cache_errors.CacheCorruption(cpv, e)
                
                for k, v in values.items():
-                       if k != "_mtime_":
+                       if k != "_mtime_" and (k == "_eclasses_" or k in self._known_keys):
                                myf.writelines("%s=%s\n" % (k, v))
 
                myf.close()