[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/09: derivations: Improve docstring of 'substitution-oracle'.
From: |
Ludovic Courtès |
Subject: |
06/09: derivations: Improve docstring of 'substitution-oracle'. |
Date: |
Wed, 22 Jul 2015 20:56:56 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 1eabf4ec63587a90fd8ea05a07f832d240dc3967
Author: Ludovic Courtès <address@hidden>
Date: Wed Jul 22 18:35:43 2015 +0200
derivations: Improve docstring of 'substitution-oracle'.
* guix/derivations.scm (substitution-oracle): Improve docstring.
---
guix/derivations.scm | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/guix/derivations.scm b/guix/derivations.scm
index d694ccf..342a6c8 100644
--- a/guix/derivations.scm
+++ b/guix/derivations.scm
@@ -242,8 +242,10 @@ result is the set of prerequisites of DRV not already in
valid."
(define* (substitution-oracle store drv)
"Return a one-argument procedure that, when passed a store file name,
returns #t if it's substitutable and #f otherwise. The returned procedure
-knows about all substitutes for all the derivations listed in DRV; it also
-knows about their prerequisites, unless they are themselves substitutable.
+knows about all substitutes for all the derivations listed in DRV, *except*
+those that are already valid (that is, it won't bother checking whether an
+item is substitutable if it's already on disk); it also knows about their
+prerequisites, unless they are themselves substitutable.
Creating a single oracle (thus making a single 'substitutable-paths' call) and
reusing it is much more efficient than calling 'has-substitutes?' or similar
- branch master updated (1436c5c -> 31ea3eb), Ludovic Courtès, 2015/07/22
- 01/09: gnu: guile-minikanren: Fix README location., Ludovic Courtès, 2015/07/22
- 02/09: size: Remove leftover 'pk'., Ludovic Courtès, 2015/07/22
- 03/09: import: hackage: Remove reference to unbound variable., Ludovic Courtès, 2015/07/22
- 04/09: doc: Mention initial passwords in "System Installation"., Ludovic Courtès, 2015/07/22
- 05/09: derivations: Improve complexity of 'substitution-oracle'., Ludovic Courtès, 2015/07/22
- 07/09: size: Add '--substitute-urls' option., Ludovic Courtès, 2015/07/22
- 06/09: derivations: Improve docstring of 'substitution-oracle'.,
Ludovic Courtès <=
- 08/09: doc: Mention zeroed mtimes in the binary tarball., Ludovic Courtès, 2015/07/22
- 09/09: Thank Dave., Ludovic Courtès, 2015/07/22