]> git.eshelyaron.com Git - emacs.git/commitdiff
Ensure system package cleanup
authorArtyom Khramov <futu.fata@gmail.com>
Sat, 19 May 2018 18:44:43 +0000 (00:44 +0600)
committerArtyom Khramov <futu.fata@gmail.com>
Sat, 19 May 2018 18:53:08 +0000 (00:53 +0600)
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

lisp/use-package/use-package-ensure-system-package.el

index 9f2a59ae5e698c9bcca968a221f906856cf88ee9..e4b3e32b5475840972213c960286aec9f0e1ca97 100644 (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."