diff options
| -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 | import urllib2 | 126 | import urllib2 |
| @@ -308,7 +309,7 @@ def SetupGnuPG(quiet): | |||
| 308 | 309 | ||
| 309 | if not os.path.isdir(gpg_dir): | 310 | if not os.path.isdir(gpg_dir): |
| 310 | try: | 311 | try: |
| 311 | os.mkdir(gpg_dir, 0700) | 312 | os.mkdir(gpg_dir, stat.S_IRWXU) |
| 312 | except OSError as e: | 313 | except OSError as e: |
| 313 | print >>sys.stderr, \ | 314 | print >>sys.stderr, \ |
| 314 | 'fatal: cannot make %s directory: %s' % ( | 315 | 'fatal: cannot make %s directory: %s' % ( |
