Bug #286475 - Fix KeyValuePairFileLoader.lineParser() so it doesn't raise
authorZac Medico <zmedico@gentoo.org>
Sat, 26 Sep 2009 07:32:58 +0000 (07:32 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 26 Sep 2009 07:32:58 +0000 (07:32 -0000)
AttributeError when a key/value is redefined.

svn path=/main/trunk/; revision=14435

pym/portage/env/loaders.py

index 60e0e1b11ede3f66b4243f15e77abf9d5320c341..0dc4d75beddb5948fc476dbe2fd9ee6ce8d47c7d 100644 (file)
@@ -317,7 +317,4 @@ class KeyValuePairFileLoader(FileLoader):
                                _("Value validation failed at line: %s, data %s")
                                % (line_num + 1, value))
                        return
-               if key in data:
-                       data[key].append(value)
-               else:
-                       data[key] = value
+               data[key] = value