Closed phyber closed 8 years ago
An alternate implementation here if this patch is unacceptable may be to enable the passing of an options hash down to the FileUtils.cp_r
, then nobody has their toes stepped on and can provide their own options for specific situations.
Thank you! :smiley:
Prevents
FileUtils.cp_r
from dereferencing symlinks during#install
.I haven't seen any issues with this in my limited testing so far. My aim was to be able to easily install a directory of libraries and their symlinks when creating "broken out" packages (ie.
thing
,thing-libs
, etc).For example: with this patch
lib('thing').install Dir.glob('/some/path/usr/lib/*.so*')
will successfully copy the libraries and symlinks tolib('thing')
without dereferencing the symlinks thus avoiding the need for workarounds in this situation.I also ignored
vim
backups in the.gitignore
.