From 92f8c49134665e9c064ce122bc85b8bc30d65518 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 25 May 2008 22:49:16 +0000 Subject: [PATCH] Fix breakage in Package constructor attribute initialization. svn path=/main/trunk/; revision=10423 --- pym/_emerge/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.26.2