mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-17 12:30:38 +02:00
utils: Make sure `substitute' writes all its output.
* guix/build/utils.scm (substitute): Close OUT before renaming it.
This commit is contained in:
parent
1a7d8e2048
commit
8e6ecb1400
1 changed files with 1 additions and 0 deletions
|
@ -170,6 +170,7 @@ MATCH OUTPUT-PORT)."
|
||||||
(display line out)
|
(display line out)
|
||||||
(newline out)))
|
(newline out)))
|
||||||
(loop (read-line in)))))))
|
(loop (read-line in)))))))
|
||||||
|
(close out)
|
||||||
(rename-file template file))
|
(rename-file template file))
|
||||||
(lambda (key . args)
|
(lambda (key . args)
|
||||||
(false-if-exception (delete-file template))))))
|
(false-if-exception (delete-file template))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue