summaryrefslogtreecommitdiffstats
path: root/pym/portage/cache/template.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/cache/template.py')
-rw-r--r--pym/portage/cache/template.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage/cache/template.py b/pym/portage/cache/template.py
index 515ba022b..0af6c20ca 100644
--- a/pym/portage/cache/template.py
+++ b/pym/portage/cache/template.py
@@ -47,6 +47,11 @@ class database(object):
self.validation_chf, paths=self.store_eclass_paths)
elif "_eclasses_" not in d:
d["_eclasses_"] = {}
+ # Never return INHERITED, since portdbapi.aux_get() will
+ # generate it automatically from _eclasses_, and we want
+ # to omit it in comparisons between cache entries like
+ # those that egencache uses to avoid redundant writes.
+ d.pop("INHERITED", None)
mtime = d.get('_mtime_')
if mtime is None:
raise cache_errors.CacheCorruption(cpv,