diff options
| author | Nick Mathewson <nickm@torproject.org> | 2008-06-28 02:38:33 +0000 |
|---|---|---|
| committer | Nick Mathewson <nickm@torproject.org> | 2008-06-28 02:38:33 +0000 |
| commit | 7e5e2fc5dbff029a0420fb73f5038047d9f7c1c0 (patch) | |
| tree | 2bceaa1a57d66332b23f658891abcd2be44da460 /updateCache.py | |
| parent | 4e069eb0cceb83e932f86374cd46a549b56a7766 (diff) | |
| download | anonbib-7e5e2fc5dbff029a0420fb73f5038047d9f7c1c0.tar.gz | |
Make cache-file umask configurable.
svn:r286
Diffstat (limited to 'updateCache.py')
| -rwxr-xr-x | updateCache.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/updateCache.py b/updateCache.py index 3bf346c..7b7fe64 100755 --- a/updateCache.py +++ b/updateCache.py @@ -18,8 +18,6 @@ import socket import errno import httplib -os.umask(022) - FILE_TYPES = [ "txt", "html", "pdf", "ps", "ps.gz", "abstract" ] BIN_FILE_TYPES = [ 'pdf', 'ps.gz' ] @@ -164,5 +162,8 @@ if __name__ == '__main__': sys.exit(1) config.load(sys.argv[1]) + if config.CACHE_UMASK != None: + os.umask(config.CACHE_UMASK) + bib = BibTeX.parseFile(config.MASTER_BIB) downloadAll(bib,missingOnly=1) |
