mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1676130 - part 2: Let mach try release
overwrite the content of build/defines.sh r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D96410
This commit is contained in:
parent
c83718f66d
commit
43412d8254
@ -76,6 +76,13 @@ class ReleaseParser(BaseTryParser):
|
||||
self.set_defaults(migrations=[])
|
||||
|
||||
|
||||
_UNSET_EARLY_BETA_OR_EARLIER = """\
|
||||
# Define indicating that this build is prior to one of the early betas. To be
|
||||
# unset mid-way through the beta cycle.
|
||||
EARLY_BETA_OR_EARLIER=
|
||||
"""
|
||||
|
||||
|
||||
def run(
|
||||
version,
|
||||
migrations,
|
||||
@ -94,6 +101,9 @@ def run(
|
||||
"config/milestone.txt": "{}\n".format(app_version),
|
||||
}
|
||||
|
||||
if "beta-to-release" in migrations:
|
||||
files_to_change["build/defines.sh"] = _UNSET_EARLY_BETA_OR_EARLIER
|
||||
|
||||
release_type = version.version_type.name.lower()
|
||||
if release_type not in ("beta", "release", "esr"):
|
||||
raise Exception(
|
||||
|
Loading…
Reference in New Issue
Block a user