From 6954c3f5829e46725c4a9d343c27f8e1c8a37f0e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 1 Dec 2017 01:36:36 -0800 Subject: [PATCH] Don't factor out a volatile variable Possibly fixes https://github.com/jwiegley/use-package/issues/527 --- lisp/use-package/use-package.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) -- 2.39.2