1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

Don't factor out a volatile variable

Possibly fixes https://github.com/jwiegley/use-package/issues/527
This commit is contained in:
John Wiegley 2017-12-01 01:36:36 -08:00
parent 7f2eec9e65
commit 6954c3f582

View File

@ -739,14 +739,15 @@ If the package is installed, its entry is removed from
(not (or (member context '(:byte-compile :ensure :config))
(y-or-n-p (format "Install package %S?" package))))
(condition-case-unless-debug err
(let ((pinned (assoc package (bound-and-true-p
package-pinned-packages))))
(when pinned
(progn
(when (assoc package (bound-and-true-p
package-pinned-packages))
(package-read-all-archive-contents))
(if (assoc package package-archive-contents)
(package-install package)
(package-refresh-contents)
(when pinned
(when (assoc package (bound-and-true-p
package-pinned-packages))
(package-read-all-archive-contents))
(package-install package))
t)