public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] patman: fix series-notes handling for buildman
@ 2015-11-09 14:19 Albert ARIBAUD
  2015-11-09 20:24 ` Simon Glass
  0 siblings, 1 reply; 8+ messages in thread
From: Albert ARIBAUD @ 2015-11-09 14:19 UTC (permalink / raw)
  To: u-boot

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@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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-02-02  9:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-09 14:19 [U-Boot] [PATCH] patman: fix series-notes handling for buildman Albert ARIBAUD
2015-11-09 20:24 ` Simon Glass
2015-11-09 21:36   ` Albert ARIBAUD
2015-11-14  2:35     ` Simon Glass
2015-11-20  3:29       ` Simon Glass
2016-01-31 16:51         ` Albert ARIBAUD
2016-02-02  0:05           ` Simon Glass
2016-02-02  9:25             ` Albert ARIBAUD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox