]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
patman: Allow for changelog use in first version of a series
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 13 Aug 2012 10:08:22 +0000 (10:08 +0000)
committerWolfgang Denk <wd@denx.de>
Sun, 2 Sep 2012 14:25:33 +0000 (16:25 +0200)
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>
tools/patman/series.py

index 4e7cb71c987594716ef2dd1ab867689e0125f26e..518834c8d16087c16ddbae67ee877c630dbba3b1 100644 (file)
@@ -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)