Subject: [bug#45101] [PATCH] scripts: discover: Remove file locks.

From: Ludovic Courtès <[email-masked]>
Date: Sat, 12 Dec 2020 20:52:01 +0100

Hi!

Mathieu Othacehe <[email-masked]> 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’.