]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix 'package-install-upgrade-built-in' check for package menu
authorPhilip Kaludercic <philipk@posteo.net>
Sat, 27 May 2023 08:13:21 +0000 (10:13 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Wed, 31 May 2023 21:54:29 +0000 (23:54 +0200)
* lisp/emacs-lisp/package.el (package-menu--find-upgrades): Use
correct check to verify if a built-in packages in the package menu can
be upgraded or not.

This change improves upon a faulty assumption from
ba2c76fa2bc3aabfda7d1d09cc5148f3f9d8e08e.  (Bug#63587)

lisp/emacs-lisp/package.el

index 202aca36f242044f87278c7786d702814882bf50..8f266186d5e12eba9b6781d09c763f1037ccc359 100644 (file)
@@ -3769,8 +3769,8 @@ object corresponding to the newer version."
         (and avail-pkg
              (version-list-< (package-desc-priority-version pkg-desc)
                              (package-desc-priority-version avail-pkg))
-             (xor (not package-install-upgrade-built-in)
-                  (package--active-built-in-p pkg-desc))
+             (or (not (package--active-built-in-p pkg-desc))
+                 package-install-upgrade-built-in)
              (push (cons name avail-pkg) upgrades))))
     upgrades))