Allow first release in cycle to be RC
This cycle we changed cycle-with-milestones to cycle-with-rc and no longer require that projects do any beta releases prior to the RC. This updates our release version validation check to allow for the first release of the cycle to be an RC release. Change-Id: Idf12bb22d35ebecf0c64a29b14d239e4a2d4b996 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
parent
4a5f0b239a
commit
fc79ebcc8f
@ -247,7 +247,10 @@ def validate_series_first(deliv, context):
|
||||
|
||||
versionstr = releases[0].version
|
||||
patchlevel = versionstr.rpartition('.')[-1]
|
||||
if not (patchlevel == '0' or patchlevel.startswith('0b')):
|
||||
# Make sure first release of a series is more than just a bugfix bump so
|
||||
# there is room for a stable release in the previous cycle
|
||||
if not (patchlevel == '0' or
|
||||
patchlevel.startswith('0b') or patchlevel.startswith('0rc')):
|
||||
context.error(
|
||||
'Initial releases in a series must increment at '
|
||||
'least the minor version or be beta versions. %r' % (versionstr,)
|
||||
|
Loading…
Reference in New Issue
Block a user