Fix it so that values are properly saved in the writable layer. Previously they...
authorZac Medico <zmedico@gentoo.org>
Wed, 21 Jun 2006 02:56:24 +0000 (02:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 21 Jun 2006 02:56:24 +0000 (02:56 -0000)
svn path=/main/branches/2.1/; revision=3571

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