cubicweb/toolsutils.py
changeset 11693 b44c0d2462c9
parent 11476 a9f26de5ea6c
child 11767 432f87a63057
--- a/cubicweb/toolsutils.py	Wed Oct 05 08:55:02 2016 +0200
+++ b/cubicweb/toolsutils.py	Wed Oct 05 09:23:07 2016 +0200
@@ -155,6 +155,7 @@
                 show_diffs(tfpath, fpath, askconfirm)
             else:
                 shutil.copyfile(fpath, tfpath)
+                shutil.copymode(fpath, tfpath)
 
 def fill_templated_file(fpath, tfpath, context):
     with io.open(fpath, encoding='ascii') as fobj: