RootConfig: mtimedb AttributeError, bug #473710
authorZac Medico <zmedico@gentoo.org>
Tue, 18 Jun 2013 14:58:52 +0000 (07:58 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 18 Jun 2013 14:58:52 +0000 (07:58 -0700)
pym/_emerge/RootConfig.py

index 1348570008179db97a4b7a12373354d86940efcc..6b0f8acc1a432741e4b54e3a21dec22bcd005cbd 100644 (file)
@@ -31,4 +31,8 @@ class RootConfig(object):
                Shallow copy all attributes from another instance.
                """
                for k in self.__slots__:
-                       setattr(self, k, getattr(other, k))
+                       try:
+                               setattr(self, k, getattr(other, k))
+                       except AttributeError:
+                               # mtimedb is currently not a required attribute
+                               pass