mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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
f65cf81a3c
commit
462f8e9f33
1 changed files with 6 additions and 6 deletions
|
@ -191,9 +191,9 @@ (define (guix-substitute-binary . args)
|
|||
'())))
|
||||
(for-each (lambda (narinfo)
|
||||
(when narinfo
|
||||
(display (narinfo-path narinfo))
|
||||
(newline)))
|
||||
substitutable)))
|
||||
(format #t "~a~%" (narinfo-path narinfo))))
|
||||
substitutable)
|
||||
(newline)))
|
||||
(("info" paths ..1)
|
||||
;; Reply info about PATHS if it's in CACHE.
|
||||
(let ((substitutable
|
||||
|
@ -215,9 +215,9 @@ (define (guix-substitute-binary . args)
|
|||
(narinfo-references narinfo))
|
||||
(format #t "~a\n~a\n"
|
||||
(or (narinfo-file-size narinfo) 0)
|
||||
(or (narinfo-size narinfo) 0))
|
||||
(newline))
|
||||
substitutable)))
|
||||
(or (narinfo-size narinfo) 0)))
|
||||
substitutable)
|
||||
(newline)))
|
||||
(wtf
|
||||
(error "unknown `--query' command" wtf)))
|
||||
(loop (read-line)))))))
|
||||
|
|
Loading…
Reference in a new issue