ensure all proposed versions include major.minor.patch values
In some cases the last release version was being parsed down to 2 places. Pad it out with an extra zero before trimming to ensure that we always have three values in the version number. Change-Id: I925647e7b53829d0f6015832bccdf84babd5a3d6 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
5179c1e565
commit
16d8794ce7
|
@ -183,9 +183,10 @@ def main():
|
|||
if not args.all:
|
||||
continue
|
||||
# The new version is the same as the latest release version
|
||||
# without the pre-release component at the end.
|
||||
# without the pre-release component at the end. Make sure it
|
||||
# has 3 sets of digits.
|
||||
new_version = '.'.join(
|
||||
latest_release['version'].split('.')[:-1]
|
||||
(latest_release['version'].split('.')[:-1] + ['0'])[:3]
|
||||
)
|
||||
branch = 'stable/{}'.format(args.prior_series)
|
||||
diff_start = get_prior_branch_point(
|
||||
|
|
Loading…
Reference in New Issue