Commit 070b781b authored by Albert ARIBAUD's avatar Albert ARIBAUD Committed by Simon Glass
Browse files

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: default avatarAlbert ARIBAUD <>
Acked-by: default avatarSimon Glass <>
Tested-by: default avatarSimon Glass <>
parent 5f3f7b79
......@@ -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]
self[name] = value
raise ValueError("In %s: line '%s': Unknown 'Series-%s': valid "
"options are %s" % (commit.hash, line, name,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment