]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't factor out a volatile variable
authorJohn Wiegley <johnw@newartisans.com>
Fri, 1 Dec 2017 09:36:36 +0000 (01:36 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 1 Dec 2017 09:36:36 +0000 (01:36 -0800)
Possibly fixes https://github.com/jwiegley/use-package/issues/527

lisp/use-package/use-package.el

index 513ec1314e5a2b6340f03e7a3f5983eed91fcc38..878fa673409eba2797f25539bdb127733e75d2fa 100644 (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)