gecko-dev/python/mozboot
Ted Mielczarek 8a92d6f72c bug 1483941 - prompt to enable build system telemetry in bootstrap. r=nalexander
This change adds a prompt to enable build system telemetry as part of
bootstrap. The prompt will only be shown if the build.telemetry config value
is not present, so users will not be prompted again if they have already
opted-in. However, if a user answers 'no' we don't save that value to
the config file because the default is to not send telemetry, so unless
they manually add `telemetry = false` to their config file they will be
prompted again the next time they run bootstrap.

The config value is always written to `~/.mozbuild/machrc` where we store
other Firefox build-related state. A standalone function is used to write
the config file so that we can do so even when running from bootstrap.py
outside of the context of a mach command.

As part of this change a `prompt_yesno` method is added to `BaseBootstrapper`.

Differential Revision: https://phabricator.services.mozilla.com/D9781

--HG--
extra : moz-landing-system : lando
2018-11-06 14:19:24 +00:00
..
bin Bug 1471541 - switch to new tooltool url, r=jlund 2018-07-03 15:35:58 -07:00
mozboot bug 1483941 - prompt to enable build system telemetry in bootstrap. r=nalexander 2018-11-06 14:19:24 +00:00
support
README.rst
setup.py Bug 1408365 - Enable flake8/py2/py3 linters on python/mozboot. r=ahal 2017-10-13 23:33:00 -04:00

README.rst

mozboot - Bootstrap your system to build Mozilla projects
=========================================================

This package contains code used for bootstrapping a system to build
mozilla-central.

This code is not part of the build system per se. Instead, it is related
to everything up to invoking the actual build system.

If you have a copy of the source tree, you run:

    python bin/bootstrap.py

If you don't have a copy of the source tree, you can run:

    curl https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py | python -

The bootstrap script will download everything it needs from hg.mozilla.org
automatically!