store: 'references/substitutes' save an RPC is the trivial case.
* guix/store.scm (references/substitutes): Save a 'substitutable-path-info' call when MISSING is empty.
This commit is contained in:
parent
dd78efe39a
commit
2633bd324b
|
@ -1023,7 +1023,9 @@ information for one of ITEMS is missing."
|
|||
|
||||
;; Query all the substitutes at once to minimize the cost of
|
||||
;; launching 'guix substitute' and making HTTP requests.
|
||||
(substs (substitutable-path-info store missing)))
|
||||
(substs (if (null? missing)
|
||||
'()
|
||||
(substitutable-path-info store missing))))
|
||||
(when (< (length substs) (length missing))
|
||||
(raise (condition (&nix-protocol-error
|
||||
(message "cannot determine \
|
||||
|
|
Loading…
Reference in New Issue