]> git.eshelyaron.com Git - emacs.git/commitdiff
:ensure-system-package allow cdr of cons to be a package name symbol
authorJustin Talbott <justin@waymondo.com>
Fri, 16 Mar 2018 16:29:20 +0000 (12:29 -0400)
committerJustin Talbott <justin@waymondo.com>
Fri, 16 Mar 2018 16:29:20 +0000 (12:29 -0400)
closes https://github.com/jwiegley/use-package/issues/652

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

index 48fbde2e20a8218ae5f98194ca00b702a5e75a82..81beaec104f703723b1f05956d04a56e1f2de130 100644 (file)
     (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)