[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: store: 'references/substitutes' save an RPC is the trivial case.
From: |
Ludovic Courtès |
Subject: |
01/02: store: 'references/substitutes' save an RPC is the trivial case. |
Date: |
Sat, 1 Jul 2017 18:41:59 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 2633bd324b4333168518511030f227ee9664e65f
Author: Ludovic Courtès <address@hidden>
Date: Sun Jul 2 00:20:23 2017 +0200
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(-)
diff --git a/guix/store.scm b/guix/store.scm
index d1a4c67..afd26d3 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 \