substitute-binary: Fix communication of several store paths to the daemon.
* guix/scripts/substitute-binary.scm (guix-substitute-binary)["--query"]: Emit blank lines only after the complete list of store paths has been returned.
This commit is contained in:
parent
419fffa2e8
commit
7ce1f2160f
@ -191,9 +191,9 @@ failure."
|
|||||||
'())))
|
'())))
|
||||||
(for-each (lambda (narinfo)
|
(for-each (lambda (narinfo)
|
||||||
(when narinfo
|
(when narinfo
|
||||||
(display (narinfo-path narinfo))
|
(format #t "~a~%" (narinfo-path narinfo))))
|
||||||
|
substitutable)
|
||||||
(newline)))
|
(newline)))
|
||||||
substitutable)))
|
|
||||||
(("info" paths ..1)
|
(("info" paths ..1)
|
||||||
;; Reply info about PATHS if it's in CACHE.
|
;; Reply info about PATHS if it's in CACHE.
|
||||||
(let ((substitutable
|
(let ((substitutable
|
||||||
@ -215,9 +215,9 @@ failure."
|
|||||||
(narinfo-references narinfo))
|
(narinfo-references narinfo))
|
||||||
(format #t "~a\n~a\n"
|
(format #t "~a\n~a\n"
|
||||||
(or (narinfo-file-size narinfo) 0)
|
(or (narinfo-file-size narinfo) 0)
|
||||||
(or (narinfo-size narinfo) 0))
|
(or (narinfo-size narinfo) 0)))
|
||||||
(newline))
|
substitutable)
|
||||||
substitutable)))
|
(newline)))
|
||||||
(wtf
|
(wtf
|
||||||
(error "unknown `--query' command" wtf)))
|
(error "unknown `--query' command" wtf)))
|
||||||
(loop (read-line)))))))
|
(loop (read-line)))))))
|
||||||
|
Loading…
Reference in New Issue
Block a user