Bug 889669 - Use Python 3 compatible octal syntax; r=ted
authorGregory Szorc <gps@mozilla.com>
Tue, 02 Jul 2013 17:32:38 -0700
changeset 144777 e26fd33b8c8338ae083f2131d0cc49e0d84c016c
parent 144776 c193fdeb4932c8ba65fea39f43644f338d2f42bf
child 144782 b48e06621dc929d6b2d0d3b653ee4130fe34e4f4
child 144852 1196dee2c0f059ba74c6f4b6e73bc5de946ce350
push idunknown
push userunknown
push dateunknown
reviewersted
bugs889669
milestone25.0a1
Bug 889669 - Use Python 3 compatible octal syntax; r=ted And change the permissions to be more standard for a user directory. DONTBUILD (NPOTB)
build/mach_bootstrap.py
--- a/build/mach_bootstrap.py
+++ b/build/mach_bootstrap.py
@@ -122,17 +122,17 @@ def bootstrap(topsrcdir, mozilla_dir=Non
     # to react. We always exit after creating the directory because users don't
     # like surprises.
     state_user_dir = os.path.expanduser('~/.mozbuild')
     state_env_dir = os.environ.get('MOZBUILD_STATE_PATH', None)
     if state_env_dir:
         if not os.path.exists(state_env_dir):
             print('Creating global state directory from environment variable: %s'
                 % state_env_dir)
-            os.makedirs(state_env_dir, mode=0777)
+            os.makedirs(state_env_dir, mode=0o770)
             print('Please re-run mach.')
             sys.exit(1)
     else:
         if not os.path.exists(state_user_dir):
             print(STATE_DIR_FIRST_RUN.format(userdir=state_user_dir))
             try:
                 for i in range(20, -1, -1):
                     time.sleep(1)