[U-Boot] [PATCH] patman: fix series-notes handling for buildman

Albert ARIBAUD albert.u.boot at aribaud.net
Mon Nov 9 15:19:44 CET 2015


A patman series with a 'Series-notes' section causes
buildman to crash with:

    self.series.notes += self.section
    TypeError: cannot concatenate 'str' and 'list' objects

Fix by initializing series.notes as a one-element array
rathen than a scalar.

Signed-off-by: Albert ARIBAUD <albert.u.boot at aribaud.net>
---

 tools/patman/series.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/patman/series.py b/tools/patman/series.py
index 3399f2c..e8aad59 100644
--- a/tools/patman/series.py
+++ b/tools/patman/series.py
@@ -69,7 +69,7 @@ class Series(dict):
 
         # Otherwise just set the value
         elif name in valid_series:
-            self[name] = value
+            self[name] = [value]
         else:
             raise ValueError("In %s: line '%s': Unknown 'Series-%s': valid "
                         "options are %s" % (commit.hash, line, name,
-- 
2.5.0



More information about the U-Boot mailing list