summaryrefslogtreecommitdiff
path: root/guix/store.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-07-02 00:20:23 +0200
committerLudovic Courtès <ludo@gnu.org>2017-07-02 00:41:12 +0200
commit2633bd324b4333168518511030f227ee9664e65f (patch)
treec1ae04b95f41aea99abef1e294cce220b600bf37 /guix/store.scm
parentdd78efe39a036af01ec921ac3627d4363604789c (diff)
downloadgnu-guix-2633bd324b4333168518511030f227ee9664e65f.tar
gnu-guix-2633bd324b4333168518511030f227ee9664e65f.tar.gz
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.
Diffstat (limited to 'guix/store.scm')
-rw-r--r--guix/store.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/guix/store.scm b/guix/store.scm
index d1a4c67ae8..afd26d3fec 100644
--- a/guix/store.scm
+++ b/guix/store.scm
@@ -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 \