Merge pull request from waymondo/master

:ensure-system-package - allow cdr of cons to be a package name symbol
GitHub-reference: https://github.com/jwiegley/use-package/issues/654
This commit is contained in:
Justin Talbott 2018-03-16 16:07:41 -04:00 committed by GitHub
commit e2a322d870

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)