substitute-binary: Correctly handle missing narinfos in `--query' mode.
* guix/scripts/substitute-binary.scm (guix-substitute-binary)["--query"]("have", "info"): Filter SUBSTITUTABLE through `narinfo?'.
This commit is contained in:
parent
8f3114b7a4
commit
d7c5d27795
1 changed files with 2 additions and 2 deletions
|
@ -192,7 +192,7 @@ (define (guix-substitute-binary . args)
|
|||
(for-each (lambda (narinfo)
|
||||
(when narinfo
|
||||
(format #t "~a~%" (narinfo-path narinfo))))
|
||||
substitutable)
|
||||
(filter narinfo? substitutable))
|
||||
(newline)))
|
||||
(("info" paths ..1)
|
||||
;; Reply info about PATHS if it's in CACHE.
|
||||
|
@ -216,7 +216,7 @@ (define (guix-substitute-binary . args)
|
|||
(format #t "~a\n~a\n"
|
||||
(or (narinfo-file-size narinfo) 0)
|
||||
(or (narinfo-size narinfo) 0)))
|
||||
substitutable)
|
||||
(filter narinfo? substitutable))
|
||||
(newline)))
|
||||
(wtf
|
||||
(error "unknown `--query' command" wtf)))
|
||||
|
|
Loading…
Reference in a new issue