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:
Mike Hommey
2022-11-22 01:35:45 +00:00
parent 80a9e83dcf
commit c70a65f61d

View File

@@ -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
MOZBUILD_STATE_PATH environment variable to the directory you'd like to
use, and run Mach again.
Press ENTER/RETURN to continue or CTRL+c to abort.
If you would like to use a different directory, rename or move it to your
desired location, and set the MOZBUILD_STATE_PATH environment variable
accordingly.
""".strip()
@@ -586,11 +584,6 @@ def _create_state_dir():
if not os.path.exists(state_dir):
if not os.environ.get("MOZ_AUTOMATION"):
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))