~ruther/guix-local

e72f50a7873b3233a8f962a7374e1219d0426230 — Ludovic Courtès 10 years ago 736f9ff
http-client: 'http-fetch/cached' updates the cache atomically.

* guix/http-client.scm (http-fetch/cached)[update-cache]: Use
'with-atomic-file-output' instead of 'call-with-output-file'.
1 files changed, 1 insertions(+), 1 deletions(-)

M guix/http-client.scm
M guix/http-client.scm => guix/http-client.scm +1 -1
@@ 291,7 291,7 @@ Raise an '&http-get-error' condition if downloading fails."
      ;; Update the cache and return an input port.
      (let ((port (http-fetch uri #:text? text?)))
        (mkdir-p directory)
        (call-with-output-file file
        (with-atomic-file-output file
          (cut dump-port port <>))
        (close-port port)
        (open-input-file file)))