[kteam-tools PATCH v2] verify-release-ready: fix for new style of release tb

Kleber Sacilotto de Souza kleber.souza at canonical.com
Fri Apr 28 07:51:44 UTC 2017


The check for the 'release tracking bug' was looking only for the old
style tracking bug on the changelog:

  * Release Tracking Bug
    - LP: #<lp number>

Change it catch also the new style:

  * linux: <version> -proposed tracker (LP: #<lp number>)

Signed-off-by: Kleber Sacilotto de Souza <kleber.souza at canonical.com>
---
 maintscripts/verify-release-ready | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/maintscripts/verify-release-ready b/maintscripts/verify-release-ready
index 7413cab5..3a24e1f2 100755
--- a/maintscripts/verify-release-ready
+++ b/maintscripts/verify-release-ready
@@ -215,6 +215,11 @@ class VerifyReleaseReady():
         #
         found_tracker = False
         for line in changelog[1]['content']:
+            if '-proposed tracker' in line:
+                found_tracker = True
+            if 'Tracking Bug' in line:
+                found_tracker = True
+                continue
             if found_tracker:
                 if '#' in line:
                     (junk, tracker_id) = line.split('#')
@@ -224,8 +229,6 @@ class VerifyReleaseReady():
                 if tracker_id == 'warning':
                     stdo(colored('\t%s\n' % line, 'yellow'))
                 break
-            if 'Tracking Bug' in line:
-                found_tracker = True
         s.status('release tracking bug', found_tracker)
 
         # If we are on a topic branch make sure we are not re-using the same tracking
-- 
2.11.0





More information about the kernel-team mailing list