diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2020-02-06 13:30:33 +0100 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2020-02-06 13:37:38 +0100 |
commit | b2e27d8617ad727c578763445d240962828a872c (patch) | |
tree | ab23b7ece1cd475d43dac195d08d34b10aab6fcd /lisp/emacs-lisp | |
parent | 09eed01afb4968a93247fb8eb7b5301a5bfb6342 (diff) | |
download | emacs-b2e27d8617ad727c578763445d240962828a872c.tar.gz emacs-b2e27d8617ad727c578763445d240962828a872c.tar.bz2 emacs-b2e27d8617ad727c578763445d240962828a872c.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/package.el | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index afe42c7d723..130b105bb5d 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -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)) |