[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/12: gnu: home: Replace rename in update-symlinks scripts.
From: |
guix-commits |
Subject: |
06/12: gnu: home: Replace rename in update-symlinks scripts. |
Date: |
Mon, 23 Dec 2024 14:47:30 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 4b9b223bff65645b61666df48c12fd1a4f735b0f
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Sat Dec 14 12:38:14 2024 +0100
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>
---
gnu/home/services/symlink-manager.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/home/services/symlink-manager.scm
b/gnu/home/services/symlink-manager.scm
index 560e03a839..d7b22d7fba 100644
--- a/gnu/home/services/symlink-manager.scm
+++ b/gnu/home/services/symlink-manager.scm
@@ -106,7 +106,8 @@ subdirectory from XDG_CONFIG_HOME to generate a target
path."
(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)
- 03/12: services: syslog: Adjust service for rsyslog compatibility., (continued)
- 03/12: services: syslog: Adjust service for rsyslog compatibility., guix-commits, 2024/12/23
- 07/12: gnu: Add pam-hooks., guix-commits, 2024/12/23
- 04/12: weather: Reword the help message for the expression flag., guix-commits, 2024/12/23
- 01/12: gnu: openmpi@4: Hard-code file name of ‘ssh’ command., guix-commits, 2024/12/23
- 10/12: gnu: proof-general: Update to 4.5-2.d668946., guix-commits, 2024/12/23
- 12/12: gnu: hugs: Fix build with GCC., guix-commits, 2024/12/23
- 11/12: gnu: git: Update to 2.47.1., guix-commits, 2024/12/23
- 05/12: deploy: Add ‘--expression’., guix-commits, 2024/12/23
- 02/12: services: syslog: Add extra-options argument to syslog service., guix-commits, 2024/12/23
- 09/12: gnu: passt: Update to 2024_12_11.09478d5., guix-commits, 2024/12/23
- 06/12: gnu: home: Replace rename in update-symlinks scripts.,
guix-commits <=
- 08/12: gnu: radicale: Update to 3.3.2., guix-commits, 2024/12/23