aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Kaludercic2024-12-10 22:12:34 +0100
committerPhilip Kaludercic2024-12-10 22:12:43 +0100
commitdffd4a50c64db5141997ad91e04d9e2107d968b5 (patch)
tree8dafee64f13b46188297b5e60d4584b234f2ac59
parentfbcb357b9db1e7d4dd32c1f2b7b01950e66b9b34 (diff)
downloademacs-dffd4a50c64db5141997ad91e04d9e2107d968b5.tar.gz
emacs-dffd4a50c64db5141997ad91e04d9e2107d968b5.zip
Revert "Attempt to install package first when upgrading"
This reverts commit 3d8e49c41a66a7f05cb96f84e2a10f0f308ac9ca.
-rw-r--r--lisp/emacs-lisp/package.el10
1 files changed, 3 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 33d74cc7663..53d04b0d5ec 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -2272,16 +2272,12 @@ had been enabled."
2272 ;; `pkg-desc' will be nil when the package is an "active built-in". 2272 ;; `pkg-desc' will be nil when the package is an "active built-in".
2273 (if (and pkg-desc (package-vc-p pkg-desc)) 2273 (if (and pkg-desc (package-vc-p pkg-desc))
2274 (package-vc-upgrade pkg-desc) 2274 (package-vc-upgrade pkg-desc)
2275 (when pkg-desc
2276 (package-delete pkg-desc 'force 'dont-unselect))
2275 (package-install package 2277 (package-install package
2276 ;; An active built-in has never been "selected" 2278 ;; An active built-in has never been "selected"
2277 ;; before. Mark it as installed explicitly. 2279 ;; before. Mark it as installed explicitly.
2278 (and pkg-desc 'dont-select)) 2280 (and pkg-desc 'dont-select)))))
2279 ;; We delete the old package via the descriptor after installing
2280 ;; the new package to avoid losing the package if there issues
2281 ;; during installation (Bug#74556).
2282 (when pkg-desc
2283 (cl-assert (package-desc-dir pkg-desc))
2284 (package-delete pkg-desc 'force 'dont-unselect)))))
2285 2281
2286(defun package--upgradeable-packages (&optional include-builtins) 2282(defun package--upgradeable-packages (&optional include-builtins)
2287 ;; Initialize the package system to get the list of package 2283 ;; Initialize the package system to get the list of package