Merge "Allow <series>-last tag to be released for Unmaintained release"
This commit is contained in:
commit
955fa38d7c
@ -1197,9 +1197,9 @@ def validate_version_numbers(deliv, context):
|
||||
context.error(
|
||||
"LAST tag {} should match branch name (e.g {}-last)".format(
|
||||
release.version, deliv.series))
|
||||
if not deliv.series_info.is_em:
|
||||
if not (deliv.series_info.is_em or deliv.series_info.is_eom):
|
||||
context.error(
|
||||
"LAST tag {} aren't allowed on a series ({}) that are not EM".format(
|
||||
"LAST tag {} aren't allowed on a series ({}) that are not EM or Unmaintained".format(
|
||||
release.version, deliv.series))
|
||||
continue
|
||||
|
||||
|
@ -55,6 +55,10 @@ class Series(object):
|
||||
def is_em(self):
|
||||
return self.status == 'extended maintenance'
|
||||
|
||||
@property
|
||||
def is_eom(self):
|
||||
return self.status == 'unmaintained'
|
||||
|
||||
@property
|
||||
def is_maintained(self):
|
||||
return self.status == 'maintained' or self.status == 'development'
|
||||
|
Loading…
Reference in New Issue
Block a user