diff options
| -rwxr-xr-x | repo | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -88,6 +88,7 @@ REPO_MAIN = S_repo + '/main.py' # main script | |||
| 88 | import optparse | 88 | import optparse |
| 89 | import os | 89 | import os |
| 90 | import re | 90 | import re |
| 91 | import stat | ||
| 91 | import subprocess | 92 | import subprocess |
| 92 | import sys | 93 | import sys |
| 93 | import urllib2 | 94 | import urllib2 |
| @@ -276,7 +277,7 @@ def _SetupGnuPG(quiet): | |||
| 276 | 277 | ||
| 277 | if not os.path.isdir(gpg_dir): | 278 | if not os.path.isdir(gpg_dir): |
| 278 | try: | 279 | try: |
| 279 | os.mkdir(gpg_dir, 0700) | 280 | os.mkdir(gpg_dir, stat.S_IRWXU) |
| 280 | except OSError as e: | 281 | except OSError as e: |
| 281 | print >>sys.stderr, \ | 282 | print >>sys.stderr, \ |
| 282 | 'fatal: cannot make %s directory: %s' % ( | 283 | 'fatal: cannot make %s directory: %s' % ( |
