MetaDataXML: fix broken upstream initialization
authorZac Medico <zmedico@gentoo.org>
Sun, 2 Jan 2011 10:20:46 +0000 (02:20 -0800)
committerZac Medico <zmedico@gentoo.org>
Sun, 2 Jan 2011 10:22:55 +0000 (02:22 -0800)
pym/portage/xml/metadata.py

index 326a468b3664b73e4dcba0fd25622f02d380a4ea..21e9a5d6b7e40f813f6c2029ddd5f40021cf26ab 100644 (file)
@@ -306,7 +306,7 @@ class MetaDataXML(object):
 
                if self._upstream is None:
                        if self._xml_tree is None:
-                               self._useflags = tuple()
+                               self._upstream = tuple()
                        else:
                                self._upstream = tuple(_Upstream(node) \
                                        for node in self._xml_tree.findall('upstream'))