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:
Johan Lorenzo 2020-11-19 13:28:58 +00:00
parent c83718f66d
commit 43412d8254

View File

@ -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(