emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 2ed115fc3c 21/42: Fix indefinite loading of asynchronous download


From: Philip Kaludercic
Subject: master 2ed115fc3c 21/42: Fix indefinite loading of asynchronous downloads
Date: Thu, 17 Nov 2022 14:56:22 -0500 (EST)

branch: master
commit 2ed115fc3ca98efb83206afa608f94edc48782d6
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Fix indefinite loading of asynchronous downloads
    
    * 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 23e0bb15d0..f9786febf4 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]