summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/cache/metadata_overlay.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/cache/metadata_overlay.py b/pym/portage/cache/metadata_overlay.py
index 84c5a9741..7b4f70a9c 100644
--- a/pym/portage/cache/metadata_overlay.py
+++ b/pym/portage/cache/metadata_overlay.py
@@ -48,7 +48,10 @@ class database(template.database):
return value
def _setitem(self, name, values):
- value_ro = self.db_ro.get(name, None)
+ try:
+ value_ro = self.db_ro.get(name)
+ except CacheCorruption:
+ value_ro = None
if value_ro is not None and \
self._are_values_identical(value_ro, values):
# we have matching values in the underlying db_ro