From: Dmitry Gutov Date: Sat, 6 May 2023 00:32:08 +0000 (+0300) Subject: (package-upgrade): Don't remove the package from 'package-selected-packages' X-Git-Tag: emacs-29.0.91~44 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=79a886ba36837c0e13d83172ab33c1c2680c6e62;p=emacs.git (package-upgrade): Don't remove the package from 'package-selected-packages' * lisp/emacs-lisp/package.el (package-upgrade): Don't remove the package from 'package-selected-packages', fixing the problem described in https://debbugs.gnu.org/62720#718. --- diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 0919ce34448..bbe2b8bb4af 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -2282,7 +2282,7 @@ newer version from ELPA by using `\\\\[package-menu-mark- (pkg-desc (cadr (assq package package-alist)))) (if (package-vc-p pkg-desc) (package-vc-upgrade pkg-desc) - (package-delete pkg-desc 'force) + (package-delete pkg-desc 'force 'dont-unselect) (package-install package 'dont-select)))) (defun package--upgradeable-packages ()