From: Thierry Volpiatto Date: Thu, 4 Feb 2016 10:19:23 +0000 (+0100) Subject: Ensure package-install support a second argument X-Git-Tag: emacs-29.0.90~1306^2~15^2~318^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c5e98d87dae831d3ed8527bd806f6c4814db8f9b;p=emacs.git Ensure package-install support a second argument * use-package.el (use-package-ensure-elpa): Do it. --- diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 05dbf651498..98bbc417e65 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -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)))))