]> git.eshelyaron.com Git - emacs.git/commitdiff
package-update would always re-install package
authorLin Sun <sunlin7@hotmail.com>
Wed, 28 Sep 2022 11:05:26 +0000 (13:05 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 28 Sep 2022 11:05:26 +0000 (13:05 +0200)
* lisp/emacs-lisp/package.el (package--updateable-packages): fix
version comparison between available packages and archived
packages (bug#58129).

lisp/emacs-lisp/package.el

index 70c15d2793c6820b136363ccef0b3574d1b15faa..4abee9d05383c72ef5dc2c1af7f71b3ad66fd220 100644 (file)
@@ -2189,8 +2189,8 @@ to install it but still mark it as selected."
              (assq (car elt) package-archive-contents)))
         (and available
              (version-list-<
-              (package-desc-priority-version (cadr elt))
-              (package-desc-priority-version (cadr available))))))
+              (package-desc-version (cadr elt))
+              (package-desc-version (cadr available))))))
     package-alist)))
 
 ;;;###autoload