From: John Wiegley Date: Fri, 1 Dec 2017 09:36:36 +0000 (-0800) Subject: Don't factor out a volatile variable X-Git-Tag: emacs-29.0.90~1306^2~15^2~199 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6954c3f5829e46725c4a9d343c27f8e1c8a37f0e;p=emacs.git Don't factor out a volatile variable Possibly fixes https://github.com/jwiegley/use-package/issues/527 --- diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index 513ec1314e5..878fa673409 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -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)