From: Armin Ronacher Date: Sat, 27 Jul 2013 09:34:33 +0000 (+0200) Subject: Changed logic for bumping version numbers in release script X-Git-Tag: 1.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c44c76462f1d7d5431ffa79c24c701df3fbec9b;p=thirdparty%2Fbabel.git Changed logic for bumping version numbers in release script --- diff --git a/scripts/make-release.py b/scripts/make-release.py index 13746079..463ab288 100755 --- a/scripts/make-release.py +++ b/scripts/make-release.py @@ -49,7 +49,10 @@ def bump_version(version): parts = map(int, version.split('.')) except ValueError: fail('Current version is not numeric') - parts[-1] += 1 + if parts[-1] != 0: + parts[-1] += 1 + else: + parts[0] += 1 return '.'.join(map(str, parts))