Commit 357d4603 by Matthias Putz

Portable: dont protect file after copying on Windows

parent 9ae78267
......@@ -285,3 +285,8 @@ def prepare_editor_args(editor):
args = editor.rsplit()
shell = False
return (args, shell)
def os_chmod(dest, mode):
if isUnix():
os.chmod(dest, mode)
......@@ -233,7 +233,8 @@ class _CopyFile(object):
# make the file read-only
mode = os.stat(dest)[stat.ST_MODE]
mode = mode & ~(stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH)
os.chmod(dest, mode)
# os.chmod(dest, mode)
portable.os_chmod(dest, mode)
except IOError:
_error('Cannot copy file %s to %s', src, dest)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment