Merge pull request from xuchunyang/fix-package-install

Mark package as selected with package-install
GitHub-reference: https://github.com/jwiegley/use-package/issues/336
This commit is contained in:
John Wiegley 2016-04-03 11:29:36 -07:00
commit 153b542421

View file

@ -477,9 +477,7 @@ manually updated package."
(if (package-installed-p package)
t
(if (or (assoc package package-archive-contents) no-refresh)
(if (boundp 'package-selected-packages)
(package-install package t)
(package-install package))
(package-install package)
(progn
(package-refresh-contents)
(use-package-ensure-elpa package t)))))