From: Albert ARIBAUD Date: Tue, 2 Feb 2016 09:24:53 +0000 (+0100) Subject: patman: fix series-notes handling for buildman X-Git-Tag: v2016.03-rc3~17^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=070b781b2beb5298cd904fd514ba50e8530b0e2c;p=u-boot patman: fix series-notes handling for buildman 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 rather than a scalar. Signed-off-by: Albert ARIBAUD Acked-by: Simon Glass Tested-by: Simon Glass --- diff --git a/tools/patman/series.py b/tools/patman/series.py index 3399f2c8dd..cc6f80b2fd 100644 --- a/tools/patman/series.py +++ b/tools/patman/series.py @@ -69,7 +69,10 @@ class Series(dict): # Otherwise just set the value elif name in valid_series: - self[name] = value + if name=="notes": + self[name] = [value] + else: + self[name] = value else: raise ValueError("In %s: line '%s': Unknown 'Series-%s': valid " "options are %s" % (commit.hash, line, name,