]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Signal user-error on duplicate package refresh"
authorStefan Kangas <stefankangas@gmail.com>
Thu, 6 Feb 2020 12:30:33 +0000 (13:30 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Thu, 6 Feb 2020 12:37:38 +0000 (13:37 +0100)
That commit caused errors when the connection was dropped in the
middle of a package refresh.  To avoid any further issues this close
to the pretest, we simply remove this feature.  (Bug#39187)

Don't merge to master, where we will instead try to fix the bug.

lisp/emacs-lisp/package.el

index afe42c7d72399289c8b4a1a9b66e8a78962831a0..130b105bb5dfae423fce221817248bf76256e8df 100644 (file)
@@ -3175,15 +3175,12 @@ Return (PKG-DESC [NAME VERSION STATUS DOC])."
 (defun package-menu--refresh-contents (&optional _arg _noconfirm)
   "In Package Menu, download the Emacs Lisp package archive.
 Fetch the contents of each archive specified in
-`package-archives', and then refresh the package menu.  Signal a
-user-error if there is already a refresh running asynchronously.
+`package-archives', and then refresh the package menu.
 
 `package-menu-mode' sets `revert-buffer-function' to this
 function.  The args ARG and NOCONFIRM, passed from
 `revert-buffer', are ignored."
   (package--ensure-package-menu-mode)
-  (when (and package-menu-async package--downloads-in-progress)
-    (user-error "Package refresh is already in progress, please wait..."))
   (setq package-menu--old-archive-contents package-archive-contents)
   (setq package-menu--new-package-list nil)
   (package-refresh-contents package-menu-async))