summaryrefslogtreecommitdiff
path: root/guix/scripts/build.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-10-28 15:20:06 +0100
committerLudovic Courtès <ludo@gnu.org>2015-10-28 15:31:44 +0100
commitfb4bf72be3fbc23bca35ba4b842b7e1517ef0e3a (patch)
tree4d6cb0a5bf3d97222d8697976f1cc4b42c321d2c /guix/scripts/build.scm
parent34a1783fc1498d7150210da22dd7804d288438b3 (diff)
downloadgnu-guix-fb4bf72be3fbc23bca35ba4b842b7e1517ef0e3a.tar
gnu-guix-fb4bf72be3fbc23bca35ba4b842b7e1517ef0e3a.tar.gz
store: Use the daemon's substitute URLs by default.
Partly fixes <http://bugs.gnu.org/20217>. * guix/store.scm (set-build-options): Change #:substitute-urls to default to #f. Send the 'substitute-urls' pair only if SUBSTITUTE-URLS is true. * guix/scripts/build.scm (set-build-options-from-command-line): Do not default to %DEFAULT-SUBSTITUTE-URLS for #:substitute-urls. * guix/scripts/size.scm (%default-options): Remove 'substitute-urls'.
Diffstat (limited to 'guix/scripts/build.scm')
-rw-r--r--guix/scripts/build.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm
index ee7e5b958c..644ffe8d6e 100644
--- a/guix/scripts/build.scm
+++ b/guix/scripts/build.scm
@@ -185,8 +185,7 @@ options handled by 'set-build-options-from-command-line', and listed in
#:max-build-jobs (or (assoc-ref opts 'max-jobs) 1)
#:fallback? (assoc-ref opts 'fallback?)
#:use-substitutes? (assoc-ref opts 'substitutes?)
- #:substitute-urls (or (assoc-ref opts 'substitute-urls)
- %default-substitute-urls)
+ #:substitute-urls (assoc-ref opts 'substitute-urls)
#:use-build-hook? (assoc-ref opts 'build-hook?)
#:max-silent-time (assoc-ref opts 'max-silent-time)
#:timeout (assoc-ref opts 'timeout)
@@ -512,6 +511,8 @@ arguments with packages that use the specified source."
(urls (map (cut string-append <> "/log")
(if (assoc-ref opts 'substitutes?)
(or (assoc-ref opts 'substitute-urls)
+ ;; XXX: This does not necessarily match the
+ ;; daemon's substitute URLs.
%default-substitute-urls)
'())))
(roots (filter-map (match-lambda