[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#45101] [PATCH] scripts: discover: Remove file locks.
From: |
Ludovic Courtès |
Subject: |
[bug#45101] [PATCH] scripts: discover: Remove file locks. |
Date: |
Sat, 12 Dec 2020 20:52:01 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi!
Mathieu Othacehe <othacehe@gnu.org> skribis:
> * guix/scripts/discover.scm (call-once, call-with-output-file/atomic): New
> procedures copied from (system base compile).
> (call-with-read-file-lock, with-read-file-lock): Remove them.
> (write-publish-file): Use "call-with-output-file/atomic" instead of
> "with-file-lock".
> (read-substitute-urls): Remve file lock.
I think you could use ‘with-atomic-file-output’ from (guix utils).
(Apologies if I gave you the wrong name before!)
Apart from that LGTM, thanks! :-)
Ludo’.