#375 --copy-dir clears execute bits [PATCH]
Opened by patl. Modified

I have some executable scripts and code that I want to put on my install media.

So I put them in my_directory/ and then run "revisor --copy-dir=my_directory ...".

My files do show up on the media under files/, but all of their execute bits have been stripped. As a result I am unable to run my executables and scripts from the %pre section of the kickstart.

The bug is that pungi.py uses shutil.copyfile() (which does not preserve mode bits) instead of shutil.copy() (which does).

Trivial patch attached.


Fix pungi.py:copyDir() to preserve mode bits
copyfile.patch

Fix pungi.py:copyDir() to preserve mode bits
copyfile.patch

Metadata