RootConfig.update: call delattr when appropriate
authorZac Medico <zmedico@gentoo.org>
Tue, 18 Jun 2013 15:48:16 +0000 (08:48 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 18 Jun 2013 15:48:16 +0000 (08:48 -0700)
pym/_emerge/RootConfig.py

index 6b0f8acc1a432741e4b54e3a21dec22bcd005cbd..3648d01d74360231243aea2290aab89efd5c8f9b 100644 (file)
@@ -35,4 +35,7 @@ class RootConfig(object):
                                setattr(self, k, getattr(other, k))
                        except AttributeError:
                                # mtimedb is currently not a required attribute
-                               pass
+                               try:
+                                       delattr(self, k)
+                               except AttributeError:
+                                       pass