]> git.eshelyaron.com Git - emacs.git/commitdiff
Ensure package-install support a second argument
authorThierry Volpiatto <thierry.volpiatto@gmail.com>
Thu, 4 Feb 2016 10:19:23 +0000 (11:19 +0100)
committerThierry Volpiatto <thierry.volpiatto@gmail.com>
Thu, 4 Feb 2016 10:19:23 +0000 (11:19 +0100)
* use-package.el (use-package-ensure-elpa): Do it.

lisp/use-package/use-package.el

index 05dbf65149838221e7630f776dfd41c5425e571d..98bbc417e6548b19ad36bdfdf3cfffafccdcc13e 100644 (file)
@@ -462,7 +462,9 @@ manually updated package."
   (if (package-installed-p package)
       t
     (if (or (assoc package package-archive-contents) no-refresh)
-        (package-install package t)
+        (if (boundp 'package-selected-packages)
+            (package-install package t)
+            (package-install package))
       (progn
         (package-refresh-contents)
         (use-package-ensure-elpa package t)))))