1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-26 07:00:35 -08:00

Ensure system package cleanup

The function introduced in https://github.com/jwiegley/use-package/issues/673 wasn't declared at compile time, and
it made byte compiler unhappy. Moreover, it was forgotten to remove
redundant compile time variables. Thanks @tarsius for pointing that
out.

This change
* Removes redundant variable declarations
* Adds `system-packages-get-command` function declaration.

Copyright-paperwork-exempt: yes
This commit is contained in:
Artyom Khramov 2018-05-20 00:44:43 +06:00
parent 642417ac05
commit f38a100917

View file

@ -23,9 +23,7 @@
(require 'system-packages nil t)
(eval-when-compile
(defvar system-packages-package-manager)
(defvar system-packages-supported-package-managers)
(defvar system-packages-use-sudo))
(declare-function system-packages-get-command "system-packages"))
(defun use-package-ensure-system-package-install-command (pack)
"Return the default install command for PACK."