[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#74872: bugfix: update symlinks
From: |
Ludovic Courtès |
Subject: |
bug#74872: bugfix: update symlinks |
Date: |
Mon, 23 Dec 2024 19:03:50 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
ngraves@ngraves.fr skribis:
> For some reason, rename-file fails when the target and destination are
> not in the same filesystem. However, we can't assume for the
> update-symlink script that all users will always have
> e.g. ~/.local/share/applications (managed by guix-home) and ~ on the
> same filesystem. My use-case is trying to implement home
> impermanence. The patch is attached.
>
> From fe07066b88556c3755db3fc29665ce93d23cc071 Mon Sep 17 00:00:00 2001
> From: Nicolas Graves <ngraves@ngraves.fr>
> Date: Sat, 14 Dec 2024 12:38:14 +0100
> Subject: [PATCH] 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.
Applied, thanks!