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:
Ludovic Courtès 2017-07-02 00:20:23 +02:00
parent dd78efe39a
commit 2633bd324b
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -1023,7 +1023,9 @@ information for one of ITEMS is missing."
;; Query all the substitutes at once to minimize the cost of ;; Query all the substitutes at once to minimize the cost of
;; launching 'guix substitute' and making HTTP requests. ;; 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)) (when (< (length substs) (length missing))
(raise (condition (&nix-protocol-error (raise (condition (&nix-protocol-error
(message "cannot determine \ (message "cannot determine \