зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1344229 - alter version bumping to prevent race conditions. r=rail a=release DONTBUILD
MozReview-Commit-ID: Fy38tKghu2M --HG-- extra : rebase_source : b6cd22a15bfe2dc874940089f1cd49b320cf18b3
This commit is contained in:
Родитель
be920d3ccf
Коммит
0a42654947
|
@ -158,10 +158,17 @@ class PostReleaseVersionBump(MercurialScript, BuildbotMixin,
|
|||
"""Bump version"""
|
||||
dirs = self.query_abs_dirs()
|
||||
for f in self.config["version_files"]:
|
||||
curr_version = ".".join(
|
||||
self.get_version(dirs['abs_gecko_dir'], f["file"]))
|
||||
self.replace(os.path.join(dirs['abs_gecko_dir'], f["file"]),
|
||||
curr_version, self.config["next_version"])
|
||||
curr_version = self.get_version(dirs['abs_gecko_dir'], f["file"])
|
||||
next_version = self.config['next_version'].split('.')
|
||||
|
||||
if next_version <= curr_version:
|
||||
self.warning("Version bumping skipped due to conflicting values")
|
||||
continue
|
||||
else:
|
||||
curr_version = ".".join(curr_version)
|
||||
next_version = ".".join(next_version)
|
||||
self.replace(os.path.join(dirs['abs_gecko_dir'], f["file"]),
|
||||
curr_version, self.config["next_version"])
|
||||
|
||||
def tag(self):
|
||||
dirs = self.query_abs_dirs()
|
||||
|
|
Загрузка…
Ссылка в новой задаче