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

Andy Whitcroft apw at canonical.com
Wed Oct 26 18:48:23 UTC 2016


On Wed, Oct 26, 2016 at 11:07:50AM -0700, Kamal Mostafa wrote:
> 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

Acked-by: Andy Whitcroft <apw at canonical.com>

-apw




More information about the kernel-team mailing list