]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix indefinite loading of asynchronous downloads
authorPhilip Kaludercic <philipk@posteo.net>
Fri, 11 Nov 2022 17:34:14 +0000 (18:34 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Thu, 17 Nov 2022 19:37:28 +0000 (20:37 +0100)
* lisp/emacs-lisp/package.el (package--download-one-archive): Only add
the archive that is actually being downloaded to
'package--downloads-in-progress'.

lisp/emacs-lisp/package.el

index 23e0bb15d0ac95a62a943bf41a80404632d2bd8b..f9786febf4e18bb54abc215ff9265017872d3350 100644 (file)
@@ -1787,7 +1787,7 @@ similar to an entry in `package-alist'.  Save the cached copy to
 \"archives/NAME/FILE\" in `package-user-dir'."
   ;; The downloaded archive contents will be read as part of
   ;; `package--update-downloads-in-progress'.
-  (dolist (archive package-archives)
+  (when async
     (cl-pushnew (cons archive file) package--downloads-in-progress
                 :test #'equal))
   (package--with-response-buffer (cdr archive) :file file