Fix it so that values are properly saved in the writable layer. Previously they...
authorZac Medico <zmedico@gentoo.org>
Tue, 20 Jun 2006 21:55:42 +0000 (21:55 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 20 Jun 2006 21:55:42 +0000 (21:55 -0000)
svn path=/main/trunk/; revision=3544

pym/cache/metadata_overlay.py

index 557855a52135de1b8633a79cd5f46161efb7eb55..104dc34d1556753f9e467cebb1cc893b861d1864 100644 (file)
@@ -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