build-self: Add missing 'close-pipe' call.
* build-aux/build-self.scm (build): Call 'close-pipe'.
This commit is contained in:
parent
16c28becf2
commit
f27a712840
|
@ -277,14 +277,16 @@ files."
|
||||||
(mbegin %store-monad
|
(mbegin %store-monad
|
||||||
(show-what-to-build* (list build))
|
(show-what-to-build* (list build))
|
||||||
(built-derivations (list build))
|
(built-derivations (list build))
|
||||||
(let ((pipe (begin
|
(let* ((pipe (begin
|
||||||
(setenv "GUILE_WARN_DEPRECATED" "no") ;be quiet and drive
|
(setenv "GUILE_WARN_DEPRECATED" "no") ;be quiet and drive
|
||||||
(open-pipe* OPEN_READ
|
(open-pipe* OPEN_READ
|
||||||
(derivation->output-path build)
|
(derivation->output-path build)
|
||||||
source system))))
|
source system)))
|
||||||
(match (get-string-all pipe)
|
(str (get-string-all pipe))
|
||||||
|
(status (close-pipe pipe)))
|
||||||
|
(match str
|
||||||
((? eof-object?)
|
((? eof-object?)
|
||||||
(error "build program failed" build))
|
(error "build program failed" (list build status)))
|
||||||
((? derivation-path? drv)
|
((? derivation-path? drv)
|
||||||
(mbegin %store-monad
|
(mbegin %store-monad
|
||||||
(return (newline (current-output-port)))
|
(return (newline (current-output-port)))
|
||||||
|
|
Loading…
Reference in New Issue