mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1339523 - Merge day script's bump_second_digit() should bump 52.0 to 52.1.0 not 52.1 r=jlorenzo a=release DONTBUILD
MozReview-Commit-ID: 1WC3Zvds5xg --HG-- extra : rebase_source : 8fd276f5b21a61ab48c5f3c423eb03134e7cc173
This commit is contained in:
parent
cd234e0642
commit
8b63561ce3
@ -453,10 +453,9 @@ class GeckoMigration(MercurialScript, BalrogMixin, VirtualenvMixin,
|
||||
next_version = list(version)
|
||||
# bump the second digit
|
||||
next_version[1] = str(int(next_version[1]) + 1)
|
||||
# in case we have third digit, reset it to 0
|
||||
if len(next_version) > 2:
|
||||
next_version[2] = '0'
|
||||
next_version = ".".join(next_version)
|
||||
# Take major+minor and append '0' accordng to Firefox version schema.
|
||||
# 52.0 will become 52.1.0, not 52.1
|
||||
next_version = ".".join(next_version[:2] + ['0'])
|
||||
for f in self.config["version_files"]:
|
||||
self.replace(os.path.join(dirs['abs_to_dir'], f["file"]),
|
||||
curr_version, next_version + f["suffix"])
|
||||
|
Loading…
Reference in New Issue
Block a user