diff options
author | Deepti B. Kalakeri <deepti.kalakeri@linaro.org> | 2012-04-24 16:11:13 +0530 |
---|---|---|
committer | Deepti B. Kalakeri <deepti.kalakeri@linaro.org> | 2012-04-24 16:11:13 +0530 |
commit | 24315ab1465eee5e45fdefad5ac7f6d3f7ba809a (patch) | |
tree | 892db05432846de897df59a72b6896756c38be1f /scripts | |
parent | a09bd866c0fae236e7e0438484171bd4bb44aae0 (diff) | |
parent | 8a6d14afb50769f520201a3d90aa0c449488e12a (diff) |
Set write permission to the group explicitly (default umask is 022)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/publish_to_snapshots.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/publish_to_snapshots.py b/scripts/publish_to_snapshots.py index d53da06..fde5a56 100755 --- a/scripts/publish_to_snapshots.py +++ b/scripts/publish_to_snapshots.py @@ -188,7 +188,10 @@ class SnapshotsPublisher(object): def move_artifacts(self, args, build_dir_path, target_dir_path): try: if not os.path.isdir(target_dir_path): - os.makedirs(target_dir_path) + # umask 0 is required, otherwise mode value of makedirs won't take effect + os.umask(0) + # Set write permission to the group explicitly, as default umask is 022 + os.makedirs(target_dir_path, 0775) if not os.path.isdir(target_dir_path): raise OSError |