summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-25 22:49:16 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-25 22:49:16 +0000
commit92f8c49134665e9c064ce122bc85b8bc30d65518 (patch)
treefba4a10845128a15decdd1da793ffea4c6f757cd
parentb56bf0cd62a42e92d1af48a70dd3ea5bcc0b7b17 (diff)
downloadportage-92f8c49134665e9c064ce122bc85b8bc30d65518.tar.gz
portage-92f8c49134665e9c064ce122bc85b8bc30d65518.tar.bz2
portage-92f8c49134665e9c064ce122bc85b8bc30d65518.zip
Fix breakage in Package constructor attribute initialization.
svn path=/main/trunk/; revision=10423
-rw-r--r--pym/_emerge/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 45946a42c..173eba75f 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -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)