Fix breakage in Package constructor attribute initialization.
authorZac Medico <zmedico@gentoo.org>
Sun, 25 May 2008 22:49:16 +0000 (22:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 25 May 2008 22:49:16 +0000 (22:49 -0000)
svn path=/main/trunk/; revision=10423

pym/_emerge/__init__.py

index 45946a42c67905907b15ac44a5f69d7feb566939..173eba75ff7a39d72a774a8074c67b881806fa99 100644 (file)
@@ -1294,8 +1294,10 @@ class Package(Task):
                Detect metadata updates and synchronize Package attributes.
                """
                def __init__(self, pkg, metadata):
-                       dict.__init__(self, metadata.iteritems())
+                       dict.__init__(self)
                        self._pkg = pkg
+                       for k, v in metadata.iteritems():
+                               self[k] = v
 
                def __setitem__(self, k, v):
                        dict.__setitem__(self, k, v)