mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
Handle package versions that are not version strings
* lisp/emacs-lisp/package.el (package-menu--version-predicate): Ignore any errors raised by 'version-to-list', thus falling back to the default version list. (Bug#68317)
This commit is contained in:
parent
7755f71727
commit
eb913c7501
@ -4069,8 +4069,8 @@ invocations."
|
||||
(defun package-menu--version-predicate (A B)
|
||||
"Predicate to sort \"*Packages*\" buffer by the version column.
|
||||
This is used for `tabulated-list-format' in `package-menu-mode'."
|
||||
(let ((vA (or (version-to-list (aref (cadr A) 1)) '(0)))
|
||||
(vB (or (version-to-list (aref (cadr B) 1)) '(0))))
|
||||
(let ((vA (or (ignore-error error (version-to-list (aref (cadr A) 1))) '(0)))
|
||||
(vB (or (ignore-error error (version-to-list (aref (cadr B) 1))) '(0))))
|
||||
(if (version-list-= vA vB)
|
||||
(package-menu--name-predicate A B)
|
||||
(version-list-< vA vB))))
|
||||
|
Loading…
Reference in New Issue
Block a user