Commit 178b944f authored by Jakub Ružička's avatar Jakub Ružička
Browse files

template: preserve permissions on render

parent 426d9b3e
......@@ -61,3 +61,5 @@ class PackageTemplate:
log.verbose(
"copying file without render: %s -> %s", src, dst)
shutil.copyfile(src, dst)
# preserve original permission
dst.chmod(src.stat().st_mode)
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