From: Zac Medico Date: Wed, 21 Jun 2006 02:56:24 +0000 (-0000) Subject: Fix it so that values are properly saved in the writable layer. Previously they... X-Git-Tag: v2.1-r1~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=703f9522cf70e8ef7d4b31e42613ca6c4ddacc97;p=portage.git 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 ). This patch is from svn r3544. svn path=/main/branches/2.1/; revision=3571 --- 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