diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2012-04-24 12:33:22 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2012-04-24 12:33:22 +0300 |
commit | 8a6d14afb50769f520201a3d90aa0c449488e12a (patch) | |
tree | 24be45152295719c470f939fd0d866df63471463 /scripts | |
parent | 042c630454f62269b8513f58cc94a3927a53bc00 (diff) |
Set write permission to the group as default umask is 022.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/publish_to_snapshots.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/publish_to_snapshots.py b/scripts/publish_to_snapshots.py index 9968919..220fc75 100755 --- a/scripts/publish_to_snapshots.py +++ b/scripts/publish_to_snapshots.py @@ -188,9 +188,9 @@ 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) # Set write permission to the group as default umask is 022 - os.chmod(target_dir_path, 0775) + os.umask(0) + os.makedirs(target_dir_path, 0775) if not os.path.isdir(target_dir_path): raise OSError |