summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
Diffstat (limited to 'pym')
-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)