channels: Do not fail when the inferior lacks 'guix repl'.
authorLudovic Courtès <ludo@gnu.org>
Fri, 8 Mar 2019 11:25:25 +0000 (12:25 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 8 Mar 2019 11:31:38 +0000 (12:31 +0100)
commit4035fcba93aaf551f4b5698045f025aa61287e17
tree313f6b30c575a2078c306ba86635b65110994228
parent910aaa3b8646b6dfea5cab6ed8da3fc549a2dd70
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.
guix/channels.scm
guix/inferior.scm