mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 21:46:35 +01:00
gnu: home: Replace rename in update-symlinks scripts.
* gnu/home/services/symlink-manager.scm (update-symlinks): Use copy-file and delete-file instead of rename-file to avoid an error when the target and backup are not in the same filesystem. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
f1c2681542
commit
4b9b223bff
1 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,8 @@ (define backup
|
|||
(mkdir-p backup-directory)
|
||||
(format #t (G_ "Backing up ~a...") (target-file file))
|
||||
(mkdir-p (dirname backup))
|
||||
(rename-file (target-file file) backup)
|
||||
(copy-file (target-file file) backup)
|
||||
(delete-file (target-file file))
|
||||
(display (G_ " done\n")))
|
||||
|
||||
(define (cleanup-symlinks home-generation)
|
||||
|
|
Loading…
Reference in a new issue