SynologyOpenSource / pkgscripts-ng

Synology DSM6.0 package toolkit framework
162 stars 56 forks source link

Follow source symlink #1

Closed benrubson closed 7 years ago

benrubson commented 7 years ago

Hello,

This PR solves an issue when source/myproject is a symbolic link. Symbolic link itself is copied instead of the content it points to.

With this PR, if myproject is a symbolic link, link_project.py follows it and copies its content to the chroot destination. It copies instead of hard-linking, because files could easily be on another FS.

Thank you 👍

Ben