diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2016-02-04 11:19:23 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2016-02-04 11:19:23 +0100 |
commit | c5e98d87dae831d3ed8527bd806f6c4814db8f9b (patch) | |
tree | 37d43c774785ab81cec39564698f31bb2fa60ad8 /lisp/use-package/use-package.el | |
parent | 5cbfd926c5e4035fc46c17d4188015cb54204225 (diff) | |
download | emacs-c5e98d87dae831d3ed8527bd806f6c4814db8f9b.tar.gz emacs-c5e98d87dae831d3ed8527bd806f6c4814db8f9b.tar.bz2 emacs-c5e98d87dae831d3ed8527bd806f6c4814db8f9b.zip |
Ensure package-install support a second argument
* use-package.el (use-package-ensure-elpa): Do it.
Diffstat (limited to 'lisp/use-package/use-package.el')
-rw-r--r-- | lisp/use-package/use-package.el | 4 |
1 files changed, 3 insertions, 1 deletions
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))))) |