mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 13:41:31 +00:00
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 <albert.u.boot@aribaud.net> Acked-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
5f3f7b79db
commit
070b781b2b
1 changed files with 4 additions and 1 deletions
|
@ -69,6 +69,9 @@ class Series(dict):
|
||||||
|
|
||||||
# Otherwise just set the value
|
# Otherwise just set the value
|
||||||
elif name in valid_series:
|
elif name in valid_series:
|
||||||
|
if name=="notes":
|
||||||
|
self[name] = [value]
|
||||||
|
else:
|
||||||
self[name] = value
|
self[name] = value
|
||||||
else:
|
else:
|
||||||
raise ValueError("In %s: line '%s': Unknown 'Series-%s': valid "
|
raise ValueError("In %s: line '%s': Unknown 'Series-%s': valid "
|
||||||
|
|
Loading…
Add table
Reference in a new issue