:ensure-system-package allow cdr of cons to be a package name symbol

closes https://github.com/jwiegley/use-package/issues/652
This commit is contained in:
Justin Talbott 2018-03-16 12:29:20 -04:00
parent ad601fb49a
commit e5d3826b62

View file

@ -48,7 +48,11 @@
(cons arg (use-package-ensure-system-package-install-command arg)))
((symbolp arg)
(cons arg (use-package-ensure-system-package-install-command (symbol-name arg))))
((consp arg) arg)))
((consp arg)
(if (stringp (cdr arg))
arg
(cons (car arg)
(use-package-ensure-system-package-install-command (symbol-name (cdr arg))))))))
;;;###autoload
(defun use-package-normalize/:ensure-system-package (name-symbol keyword args)