[PATCH][kteam-tools] create-release-tracker: specific error if series UNRELEASED

Kamal Mostafa kamal at canonical.com
Wed Oct 26 18:07:50 UTC 2016


Since the commit

    53d78de create-release-tracker: we have the series information in the
    changelog, use it for creating the tracking bug

the changelog series must be changed from UNRELEASED to the target
release *before* running create-release-tracker not after.

Add an error explaining why, instead of failing cryptically.

Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
 stable/create-release-tracker | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/stable/create-release-tracker b/stable/create-release-tracker
index 2cdd0bf..c189322 100755
--- a/stable/create-release-tracker
+++ b/stable/create-release-tracker
@@ -156,6 +156,9 @@ class CreateTrackingBug(StdApp):
             else:
                 master_bug = None
 
+            if changelog[0]['series'] == 'UNRELEASED':
+                raise AppError('You must set the changelog series to something other than UNRELEASED.')
+
             # -------------------------------------------------------------------------------------
             # B U G   W O R K
 
-- 
2.7.4





More information about the kernel-team mailing list