gnu: emacs: Don't error on missing commands.
This is a follow-up to commit 64557bc695
.
Inputs lacking from emacs proper may not be present in emacs-minimal,
thus throwing an error on lookup. This error is already anticipated in
the handling code.
* gnu/packages/emacs.scm (emacs)[patch-program-file-names]: Wrap
search-input-file in false-if-exception.
master
parent
35707e5058
commit
775817648f
|
@ -148,9 +148,10 @@
|
||||||
(format #f "~s" (search-input-file inputs "/bin/sh"))))
|
(format #f "~s" (search-input-file inputs "/bin/sh"))))
|
||||||
(substitute* "lisp/doc-view.el"
|
(substitute* "lisp/doc-view.el"
|
||||||
(("\"(gs|dvipdf|ps2pdf|pdftotext)\"" all what)
|
(("\"(gs|dvipdf|ps2pdf|pdftotext)\"" all what)
|
||||||
(let ((replacement (search-input-file
|
(let ((replacement (false-if-exception
|
||||||
|
(search-input-file
|
||||||
inputs
|
inputs
|
||||||
(string-append "/bin/" what))))
|
(string-append "/bin/" what)))))
|
||||||
(if replacement
|
(if replacement
|
||||||
(string-append "\"" replacement "\"")
|
(string-append "\"" replacement "\"")
|
||||||
all))))
|
all))))
|
||||||
|
|
Reference in New Issue