]> git.eshelyaron.com Git - emacs.git/commit
[] Install system packages using system-packages-install
authorLaurence Rochfort <laurence.rochfort@gmail.com>
Wed, 12 Sep 2018 16:53:26 +0000 (17:53 +0100)
committerLaurence Rochfort <laurence.rochfort@gmail.com>
Wed, 12 Sep 2018 18:12:49 +0000 (19:12 +0100)
commitca39ed155f2ac4e127b0c5787cf0f1598ff93da7
tree34d9073f6d043be2419f0386b9a115e4e91ab6af
parent4a34b41f960b2507b34795d37ecff94ea90d8ea8
[] Install system packages using system-packages-install

:ensure-system-package was installing packages by running
system-packages-get-command via async-shell-command. This meant that
system-packages-use-sudo wasn't being honoured.

This patch makes :ensure-system-package use system-packages-install
for all cases, except where a custom install command is supplied, in
which case async-shell-command is used.

This issue was introduced in 9f034a0bcfdd8c4 [https://github.com/jwiegley/use-package/issues/673], as a fix for
[https://github.com/jwiegley/use-package/issues/661]. Prior to that commit, system-packages-use-sudo was being
honoured.

This patch also fixes a bug where a cons containing a lone symbol in a
list of conses causes nil to used as the package to install.
GitHub-reference: fix https://github.com/jwiegley/use-package/issues/720
Copyright-paperwork-exempt: yes
lisp/use-package/use-package-ensure-system-package.el