chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test the 'stg rename' command
[stgit]
/
setup.py
diff --git
a/setup.py
b/setup.py
index 7b0ded5c72f666d7e51b3b30c6e991bc08b3a725..d90cf5bd8802bff07650da3dcc92407498b17bbd 100755
(executable)
--- a/
setup.py
+++ b/
setup.py
@@
-1,6
+1,6
@@
#!/usr/bin/env python
#!/usr/bin/env python
-import sys, glob
+import sys, glob
, os
from distutils.core import setup
from stgit.version import version, git_min_ver, python_min_ver
from distutils.core import setup
from stgit.version import version, git_min_ver, python_min_ver
@@
-48,6
+48,9
@@
if sys.argv[1] in ['install', 'build']:
__check_python_version()
__check_git_version()
__check_python_version()
__check_git_version()
+# ensure readable template files
+old_mask = os.umask(0022)
+
setup(name = 'stgit',
version = version,
license = 'GPLv2',
setup(name = 'stgit',
version = version,
license = 'GPLv2',
@@
-66,3
+69,6
@@
setup(name = 'stgit',
'contrib/stgit-completion.bash']),
('share/doc/stgit', glob.glob('doc/*.txt'))]
)
'contrib/stgit-completion.bash']),
('share/doc/stgit', glob.glob('doc/*.txt'))]
)
+
+# restore the old mask
+os.umask(old_mask)