Skip to content

Commit b2e27d8

Browse files
committed
Revert "Signal user-error on duplicate package refresh"
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.
1 parent 09eed01 commit b2e27d8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lisp/emacs-lisp/package.el

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3175,15 +3175,12 @@ Return (PKG-DESC [NAME VERSION STATUS DOC])."
31753175
(defun package-menu--refresh-contents (&optional _arg _noconfirm)
31763176
"In Package Menu, download the Emacs Lisp package archive.
31773177
Fetch the contents of each archive specified in
3178-
`package-archives', and then refresh the package menu. Signal a
3179-
user-error if there is already a refresh running asynchronously.
3178+
`package-archives', and then refresh the package menu.
31803179
31813180
`package-menu-mode' sets `revert-buffer-function' to this
31823181
function. The args ARG and NOCONFIRM, passed from
31833182
`revert-buffer', are ignored."
31843183
(package--ensure-package-menu-mode)
3185-
(when (and package-menu-async package--downloads-in-progress)
3186-
(user-error "Package refresh is already in progress, please wait..."))
31873184
(setq package-menu--old-archive-contents package-archive-contents)
31883185
(setq package-menu--new-package-list nil)
31893186
(package-refresh-contents package-menu-async))

0 commit comments

Comments
 (0)