Commit d5f81d8a authored by Otavio Salvador's avatar Otavio Salvador Committed by Wolfgang Denk
Browse files

patman: Allow for changelog use in first version of a series



When a patchset had a RFC series, a v1 might have a changelog of
changes done since the RFC. The patch changes the range checked for
changelog and allow it to start for version 1.
Signed-off-by: default avatarOtavio Salvador <otavio@ossystems.com.br>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent c7379149
......@@ -173,12 +173,13 @@ class Series(dict):
col = terminal.Color()
if self.get('version'):
changes_copy = dict(self.changes)
for version in range(2, int(self.version) + 1):
for version in range(1, int(self.version) + 1):
if self.changes.get(version):
del changes_copy[version]
else:
str = 'Change log missing for v%d' % version
print col.Color(col.RED, str)
if version > 1:
str = 'Change log missing for v%d' % version
print col.Color(col.RED, str)
for version in changes_copy:
str = 'Change log for unknown version v%d' % version
print col.Color(col.RED, str)
......
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