summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-06-20 21:55:42 +0000
committerZac Medico <zmedico@gentoo.org>2006-06-20 21:55:42 +0000
commitb3a01e552f562cff87da029feeda099faf52d7e0 (patch)
treec39a6c46d8c062fd034183a2a17e4f592e3e78b5
parent6264a1ae6b7518fb06041e6c7317df9c087632db (diff)
downloadportage-b3a01e552f562cff87da029feeda099faf52d7e0.tar.gz
portage-b3a01e552f562cff87da029feeda099faf52d7e0.tar.bz2
portage-b3a01e552f562cff87da029feeda099faf52d7e0.zip
Fix it so that values are properly saved in the writable layer. Previously they've been discarded, leading to regen on each access (only in cases where the user has altered an ebuild in the $PORTDIR).
svn path=/main/trunk/; revision=3544
-rw-r--r--pym/cache/metadata_overlay.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/cache/metadata_overlay.py b/pym/cache/metadata_overlay.py
index 557855a52..104dc34d1 100644
--- a/pym/cache/metadata_overlay.py
+++ b/pym/cache/metadata_overlay.py
@@ -44,8 +44,10 @@ class database(template.database):
del self.db_rw[name] # delete unwanted whiteout when necessary
except KeyError:
pass
+ return
except KeyError:
- self.db_rw[name] = values
+ pass
+ self.db_rw[name] = values
def _delitem(self, cpv):
value = self[cpv] # validates whiteout and/or raises a KeyError when necessary