summaryrefslogtreecommitdiffstats
path: root/pym/cache
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-02-26 07:51:21 +0000
committerZac Medico <zmedico@gentoo.org>2006-02-26 07:51:21 +0000
commite36d804f7c78a6c429520e410aa367b79e7c4a84 (patch)
tree4bf51b539a22859ed72a368f6fbdf34e9346a36b /pym/cache
parent20814d478ee7609e988ac2655d2b61c6b68c2f90 (diff)
downloadportage-e36d804f7c78a6c429520e410aa367b79e7c4a84.tar.gz
portage-e36d804f7c78a6c429520e410aa367b79e7c4a84.tar.bz2
portage-e36d804f7c78a6c429520e410aa367b79e7c4a84.zip
Only write known keys in flat_hash cache entries (filter out UNUSED_* keys).
svn path=/main/trunk/; revision=2787
Diffstat (limited to 'pym/cache')
-rw-r--r--pym/cache/flat_hash.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/cache/flat_hash.py b/pym/cache/flat_hash.py
index 6882afd7e..1bdc7cd5b 100644
--- a/pym/cache/flat_hash.py
+++ b/pym/cache/flat_hash.py
@@ -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()