summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-08-13 10:08:22 +0000
committerWolfgang Denk <wd@denx.de>2012-09-02 16:25:33 +0200
commitd5f81d8acd14329095722879cf17a9b5295111dd (patch)
tree4a2dbbe12ab58ea1934dd0ceeca4d1552dcb7578
parentc7379149ffa2c8ba2807dd2e3ff0847f256a982e (diff)
downloadu-boot-imx-d5f81d8acd14329095722879cf17a9b5295111dd.zip
u-boot-imx-d5f81d8acd14329095722879cf17a9b5295111dd.tar.gz
u-boot-imx-d5f81d8acd14329095722879cf17a9b5295111dd.tar.bz2
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>
-rw-r--r--tools/patman/series.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/patman/series.py b/tools/patman/series.py
index 4e7cb71..518834c 100644
--- a/tools/patman/series.py
+++ b/tools/patman/series.py
@@ -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)