diff mbox

[kteam-tools] verify-release-ready: fix tag name check for hwe builds

Message ID 20170502155334.13241-1-kleber.souza@canonical.com
State New
Headers show

Commit Message

Kleber Sacilotto de Souza May 2, 2017, 3:53 p.m. UTC
The -hwe and -hwe-edge also carry the target series number (e.g.
'~14.04.1') on the version and on the tag names.

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

Patch

diff --git a/maintscripts/verify-release-ready b/maintscripts/verify-release-ready
index a0390aa5..7ac85c7c 100755
--- a/maintscripts/verify-release-ready
+++ b/maintscripts/verify-release-ready
@@ -200,9 +200,10 @@  class VerifyReleaseReady():
         if config.read('debian/gbp.conf'):
             expect_tag_format = config.get('buildpackage', 'debian-tag')
             v = version
-            # Starting with trusty, the lts backports closing commit and the tag
-            # contain '~<series_version>' (e.g. '~14.04.1')
-            if 'linux-lts-' in cl1['package']:
+            # Starting with trusty, the lts and hwe backports closing commit and the tag
+            # contain '~<series_version>', where <series_version> is the series which the
+            # kernel is backported to (e.g. '~14.04.1')
+            if 'linux-lts-' in cl1['package'] or 'linux-hwe' in cl1['package']:
                 v = cl1['version']
             expect_tag = expect_tag_format % {'version' : v}
             s.verify_tag(log, expect_tag)