From 2633bd324b4333168518511030f227ee9664e65f Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 2 Jul 2017 00:20:23 +0200 Subject: 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. --- guix/store.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'guix/store.scm') 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 @@ (define (references/substitutes store items) ;; 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 \ -- cgit v1.2.3