# HG changeset patch # User Denis Laxalde # Date 1475652187 -7200 # Node ID b44c0d2462c9ef6153e2796e09c61a141254f2e2 # Parent d46e0b3a13cc713b4269e87acf15516eba4fdde7 [skeleton] Copy files mode bits (debian/rules in particular) diff -r d46e0b3a13cc -r b44c0d2462c9 cubicweb/toolsutils.py --- 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: