aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix/http-client.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/http-client.scm b/guix/http-client.scm
index 31b511eb1c..b26795c64d 100644
--- a/guix/http-client.scm
+++ b/guix/http-client.scm
@@ -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)))