commit 5b1b38362ed59771e0ee09cff9840338e5bc8798
parent 2dff5cd36470cbc9b4577d14e322a0e493d02ae8
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 13 Nov 2026 10:37:41 +0100
Do not update the modification data of symlinks
Like directories, the modification date of the symbolic links can only
be updated by RSync by the link holders. The deployment of a site by the
install target could then fail if it contained links and had already
been deployed by another user.
This commit updates the options of the RSync commands issued by the
hooks and the Makefile to not update the modification date of the
installed symbolic links and thus avoid this error.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/example/Makefile b/example/Makefile
@@ -43,7 +43,7 @@ clean__:
install__: $(HTML) $(SIG)
@rsync -avzrR --delete-after --progress \
--chmod=Dg+s,g+w,Fg+w --chown=:$(GROUP) --omit-dir-times \
- sty.css $(HTML) $$(sty-list subdir) $(RESOURCES) \
+ --omit-link-times sty.css $(HTML) $$(sty-list subdir) $(RESOURCES) \
$(PREFIX)
################################################################################
diff --git a/src/sty-hooks b/src/sty-hooks
@@ -147,7 +147,7 @@ printf '%s\n' "${hook}" | while read -r i; do
printf '%s-install: %s\n' "${prefix}" "${tgt}"
printf ' @rsync -avzrR --delete-after --progress \\\n'
printf ' --chmod=Dg+s,g+w,Fg+w --chown=:'"\$(GROUP)"' --omit-dir-times \\\n'
- printf ' --files-from=%s ./ '"\$(PREFIX)"'\n' "${tgt}"
+ printf ' --omit-link-times --files-from=%s ./ '"\$(PREFIX)"'\n' "${tgt}"
printf 'install__: %s-install\n' "${prefix}"
# Save the current section and priority of the hook that has just been