allow betas other than 1 as first release
If a deliverable is not released at the first date-based milestone in the series, its first release will be 0b2. Be more flexible when validating the beta version in the first release in a series. Change-Id: I2703e6c802bd40ea478cd813fdd947c5a7fbb1db Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
8c72ba5586
commit
73d2841acb
@ -143,7 +143,7 @@ def validate_series_first(deliverable_info, series_name,
|
||||
return
|
||||
versionstr = releases[0]['version']
|
||||
patchlevel = versionstr.rpartition('.')[-1]
|
||||
if patchlevel not in ('0', '0b1'):
|
||||
if not (patchlevel == '0' or patchlevel.startswith('0b')):
|
||||
mk_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