Commit 070b781b2beb5298cd904fd514ba50e8530b0e2c

Authored by Albert ARIBAUD
Committed by Simon Glass
1 parent 5f3f7b79db

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>

Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff

tools/patman/series.py
... ... @@ -69,7 +69,10 @@
69 69  
70 70 # Otherwise just set the value
71 71 elif name in valid_series:
72   - self[name] = value
  72 + if name=="notes":
  73 + self[name] = [value]
  74 + else:
  75 + self[name] = value
73 76 else:
74 77 raise ValueError("In %s: line '%s': Unknown 'Series-%s': valid "
75 78 "options are %s" % (commit.hash, line, name,