diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2013-07-27 11:34:33 +0200 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2013-07-27 11:34:33 +0200 |
commit | 2c44c76462f1d7d5431ffa79c24c701df3fbec9b (patch) | |
tree | e2c70c624615b41a83ea2b21519074f1cd3497b1 /scripts | |
parent | f3623ececa51d928746771cce0b31ed1a919e7e5 (diff) | |
download | babel-2c44c76462f1d7d5431ffa79c24c701df3fbec9b.tar.gz |
Changed logic for bumping version numbers in release script
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/make-release.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/make-release.py b/scripts/make-release.py index 1374607..463ab28 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)) |