Bug 1736762 - Stop waiting for user input before the creation of ~/.mozbuild . r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D162638
This commit is contained in:
@@ -30,11 +30,9 @@ on the filesystem. The following directory will be created:
|
|||||||
|
|
||||||
{}
|
{}
|
||||||
|
|
||||||
If you would like to use a different directory, hit CTRL+c, set the
|
If you would like to use a different directory, rename or move it to your
|
||||||
MOZBUILD_STATE_PATH environment variable to the directory you'd like to
|
desired location, and set the MOZBUILD_STATE_PATH environment variable
|
||||||
use, and run Mach again.
|
accordingly.
|
||||||
|
|
||||||
Press ENTER/RETURN to continue or CTRL+c to abort.
|
|
||||||
""".strip()
|
""".strip()
|
||||||
|
|
||||||
|
|
||||||
@@ -586,11 +584,6 @@ def _create_state_dir():
|
|||||||
if not os.path.exists(state_dir):
|
if not os.path.exists(state_dir):
|
||||||
if not os.environ.get("MOZ_AUTOMATION"):
|
if not os.environ.get("MOZ_AUTOMATION"):
|
||||||
print(STATE_DIR_FIRST_RUN.format(state_dir))
|
print(STATE_DIR_FIRST_RUN.format(state_dir))
|
||||||
try:
|
|
||||||
sys.stdin.readline()
|
|
||||||
print("\n")
|
|
||||||
except KeyboardInterrupt:
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
print("Creating default state directory: {}".format(state_dir))
|
print("Creating default state directory: {}".format(state_dir))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user