[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/05: pull: Pass #:use-substitutes? to 'show-what-to-build'.
From: |
guix-commits |
Subject: |
04/05: pull: Pass #:use-substitutes? to 'show-what-to-build'. |
Date: |
Wed, 17 Jul 2019 18:44:31 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 9b9b753529db1c7a8c4628cc255e358703c15618
Author: Ludovic Courtès <address@hidden>
Date: Wed Jul 17 21:28:54 2019 +0200
pull: Pass #:use-substitutes? to 'show-what-to-build'.
Fixes <https://bugs.gnu.org/36509>.
Reported by Robert Vollmert <address@hidden>.
* guix/scripts/pull.scm (build-and-install): Add #:use-substitutes?
parameter and pass it to UPDATE-PROFILE.
(guix-pull): Pass #:use-substitutes? to 'build-and-install'.
---
guix/scripts/pull.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/guix/scripts/pull.scm b/guix/scripts/pull.scm
index 98f00c5..54bbadd 100644
--- a/guix/scripts/pull.scm
+++ b/guix/scripts/pull.scm
@@ -193,7 +193,7 @@ newest generation of PROFILE."
(_ #t)))
(define* (build-and-install instances profile
- #:key verbose? dry-run?)
+ #:key use-substitutes? verbose? dry-run?)
"Build the tool from SOURCE, and install it in PROFILE. When DRY-RUN? is
true, display what would be built without actually building it."
(define update-profile
@@ -206,6 +206,7 @@ true, display what would be built without actually building
it."
(mlet %store-monad ((manifest (channel-instances->manifest instances)))
(mbegin %store-monad
(update-profile profile manifest
+ #:use-substitutes? use-substitutes?
#:hooks %channel-profile-hooks
#:dry-run? dry-run?)
(munless dry-run?
@@ -600,6 +601,8 @@ Use '~/.config/guix/channels.scm' instead."))
(build-and-install instances profile
#:dry-run?
(assoc-ref opts 'dry-run?)
+ #:use-substitutes?
+ (assoc-ref opts 'substitutes?)
#:verbose?
(assoc-ref opts
'verbose?))))))))))))))