mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1705373 - Part 1: Only set WDBA and Update Agent configs on Firefox (browser app). r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D114306
This commit is contained in:
parent
b845f71b44
commit
bf41732e48
@ -40,10 +40,16 @@ set_config(
|
||||
# check for, download, and install updates.
|
||||
# ==============================================================
|
||||
|
||||
|
||||
@depends("--enable-backgroundtasks", build_project)
|
||||
def update_agent_default(backgroundtasks, build_project):
|
||||
return bool(backgroundtasks) and build_project == "browser"
|
||||
|
||||
|
||||
option(
|
||||
"--disable-update-agent",
|
||||
when=target_is_windows | target_is_osx,
|
||||
default=depends("--enable-backgroundtasks")(lambda x: bool(x)),
|
||||
default=update_agent_default,
|
||||
help="{Enable|Disable} building update agent",
|
||||
)
|
||||
|
||||
@ -71,9 +77,9 @@ def check_update_agent(update_agent, backgroundtasks):
|
||||
# ==============================================================================
|
||||
|
||||
|
||||
@depends(target)
|
||||
def default_browser_agent_default(target):
|
||||
return target.os == "WINNT"
|
||||
@depends(target, build_project)
|
||||
def default_browser_agent_default(target, build_project):
|
||||
return target.os == "WINNT" and build_project == "browser"
|
||||
|
||||
|
||||
option(
|
||||
|
Loading…
Reference in New Issue
Block a user