diff options
author | Dmitry Gutov <dmitry@gutov.dev> | 2023-05-06 03:32:08 +0300 |
---|---|---|
committer | Dmitry Gutov <dmitry@gutov.dev> | 2023-05-06 03:32:27 +0300 |
commit | 79a886ba36837c0e13d83172ab33c1c2680c6e62 (patch) | |
tree | 301ce41b800db6ed3fe2c698ef3b7bd751ebbcf3 /lisp | |
parent | c0ab4e9ca9326c472ff1d9d01a0e3966f20fda27 (diff) | |
download | emacs-79a886ba36837c0e13d83172ab33c1c2680c6e62.tar.gz |
(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.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/emacs-lisp/package.el | 2 |
1 files changed, 1 insertions, 1 deletions
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-mode-map>\\[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 () |