Mark package as selected with package-install

Fixes https://github.com/jwiegley/use-package/issues/327
This commit is contained in:
Chunyang Xu 2016-03-31 19:25:48 +08:00
parent af65fbea63
commit 3aa6aecb7f

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)))))