From: Zac Medico Date: Sun, 25 May 2008 22:49:16 +0000 (-0000) Subject: Fix breakage in Package constructor attribute initialization. X-Git-Tag: v2.2_pre8~107 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=92f8c49134665e9c064ce122bc85b8bc30d65518;p=portage.git Fix breakage in Package constructor attribute initialization. svn path=/main/trunk/; revision=10423 --- 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)