1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-09 21:20:45 -08:00

Merge pull request from appleby/master

Ensure package-pinned-packages is bound before referencing it.
GitHub-reference: https://github.com/jwiegley/use-package/issues/376
This commit is contained in:
John Wiegley 2016-08-15 11:37:44 -07:00 committed by GitHub
commit bcfb149517

View file

@ -500,7 +500,8 @@ manually updated package."
(defun use-package-ensure-elpa (package &optional no-refresh)
(if (package-installed-p package)
t
(if (and (not no-refresh) (assoc package package-pinned-packages))
(if (and (not no-refresh)
(assoc package (bound-and-true-p package-pinned-packages)))
(package-read-all-archive-contents))
(if (or (assoc package package-archive-contents) no-refresh)
(package-install package)