summaryrefslogtreecommitdiff
path: root/guix/channels.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-03-08 12:25:25 +0100
committerLudovic Courtès <ludo@gnu.org>2019-03-08 12:31:38 +0100
commit4035fcba93aaf551f4b5698045f025aa61287e17 (patch)
tree313f6b30c575a2078c306ba86635b65110994228 /guix/channels.scm
parent910aaa3b8646b6dfea5cab6ed8da3fc549a2dd70 (diff)
downloadpatches-4035fcba93aaf551f4b5698045f025aa61287e17.tar
patches-4035fcba93aaf551f4b5698045f025aa61287e17.tar.gz
channels: Do not fail when the inferior lacks 'guix repl'.
Fixes <https://bugs.gnu.org/34637>. Reported by Martin Flack <martin.flack@gmail.com>. Previously we'd fail to build the package cache for old versions of Guix that lack 'guix repl'. Now we simply ignore the issue and keep going without a cache. * guix/inferior.scm (gexp->derivation-in-inferior): Add #:silent-failure? and honor it. [drop-extra-keyword]: New procedure. Use it. * guix/channels.scm (package-cache-file): Pass #:silent-failure? #t.
Diffstat (limited to 'guix/channels.scm')
-rw-r--r--guix/channels.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/guix/channels.scm b/guix/channels.scm
index 96d62ce062..9658cf9393 100644
--- a/guix/channels.scm
+++ b/guix/channels.scm
@@ -477,6 +477,12 @@ be used as a profile hook."
(gexp->derivation-in-inferior "guix-package-cache" build
profile
+
+ ;; If the Guix in PROFILE is too old and
+ ;; lacks 'guix repl', don't build the cache
+ ;; instead of failing.
+ #:silent-failure? #t
+
#:properties '((type . profile-hook)
(hook . package-cache))
#:local-build? #t)))