bin/doctor: more helpful message for BSD tar

This commit is contained in:
Henrik Lissner 2017-05-21 12:13:14 +02:00
parent 5b343a32d0
commit 362bbe9cd0

View file

@ -66,10 +66,12 @@
(if (executable-find "tar") (if (executable-find "tar")
(check! (not (string-match-p "(GNU tar)" (shell-command-to-string "tar --version"))) (check! (not (string-match-p "(GNU tar)" (shell-command-to-string "tar --version")))
(m "\n+ Couldn't find GNU tar (you have a different version)") (m "\n+ You have BSD tar (or something else), rather than GNU tar. This *might* cause")
(m " wrong-type-argument errors when installing/updating packages via quelpa.")
(when IS-MAC (when IS-MAC
(m " (MacOS users can install it using homebrew: `brew install gnu-tar')"))) (m " MacOS users can install gnu-tar via homebrew:")
(check! nil (m "\n+ Couldn't find `tar`"))) (m " brew install gnu-tar --with-default-names")))
(check! nil (m "\n+ Couldn't find `tar`"))) ; very unlikely
(check! (not (executable-find "gnutls-cli")) (check! (not (executable-find "gnutls-cli"))
(m "\n+ Couldn't find `gnutls-cli`") (m "\n+ Couldn't find `gnutls-cli`")