diff options
Diffstat (limited to 'repo')
-rwxr-xr-x | repo | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -120,6 +120,7 @@ REPO_MAIN = S_repo + '/main.py' # main script | |||
120 | import optparse | 120 | import optparse |
121 | import os | 121 | import os |
122 | import re | 122 | import re |
123 | import stat | ||
123 | import subprocess | 124 | import subprocess |
124 | import sys | 125 | import sys |
125 | try: | 126 | try: |
@@ -319,7 +320,7 @@ def SetupGnuPG(quiet): | |||
319 | 320 | ||
320 | if not os.path.isdir(gpg_dir): | 321 | if not os.path.isdir(gpg_dir): |
321 | try: | 322 | try: |
322 | os.mkdir(gpg_dir, 0700) | 323 | os.mkdir(gpg_dir, stat.S_IRWXU) |
323 | except OSError as e: | 324 | except OSError as e: |
324 | print >>sys.stderr, \ | 325 | print >>sys.stderr, \ |
325 | 'fatal: cannot make %s directory: %s' % ( | 326 | 'fatal: cannot make %s directory: %s' % ( |