mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-05 02:50:44 +09:00
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: Otavio Salvador <otavio@ossystems.com.br> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c7379149ff
commit
d5f81d8acd
@ -173,10 +173,11 @@ class Series(dict):
|
|||||||
col = terminal.Color()
|
col = terminal.Color()
|
||||||
if self.get('version'):
|
if self.get('version'):
|
||||||
changes_copy = dict(self.changes)
|
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):
|
if self.changes.get(version):
|
||||||
del changes_copy[version]
|
del changes_copy[version]
|
||||||
else:
|
else:
|
||||||
|
if version > 1:
|
||||||
str = 'Change log missing for v%d' % version
|
str = 'Change log missing for v%d' % version
|
||||||
print col.Color(col.RED, str)
|
print col.Color(col.RED, str)
|
||||||
for version in changes_copy:
|
for version in changes_copy:
|
||||||
|
Loading…
Reference in New Issue
Block a user