utils: 'copy-recursively' keeps symlink mtime when #:keep-mtime? is true.

* guix/build/utils.scm (copy-recursively): In the "leaf" procedure, call
'set-file-time' also on symlinks.
This commit is contained in:
Ludovic Courtès 2020-12-11 15:03:23 +01:00
parent b1e2ec008a
commit cc6cb6e80a
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -366,10 +366,10 @@ permissions. Write verbose output to the LOG port."
(symlink target dest)))
(else
(copy-file file dest)
(when keep-mtime?
(set-file-time dest stat))
(when keep-permissions?
(chmod dest (stat:perms stat)))))))
(chmod dest (stat:perms stat)))))
(when keep-mtime?
(set-file-time dest stat))))
(lambda (dir stat result) ; down
(let ((target (string-append destination
(strip-source dir))))