Browse Source

utils: Make sure `substitute' writes all its output.

* guix/build/utils.scm (substitute): Close OUT before renaming it.
gn-latest-20200428
Ludovic Courtès 9 years ago
parent
commit
8e6ecb1400
  1. 1
      guix/build/utils.scm

1
guix/build/utils.scm

@ -170,6 +170,7 @@ MATCH OUTPUT-PORT)."
(display line out)
(newline out)))
(loop (read-line in)))))))
(close out)
(rename-file template file))
(lambda (key . args)
(false-if-exception (delete-file template))))))

Loading…
Cancel
Save