Fix computation of package description file

* lisp/subr.el (package--description-file): Do not expect
non-numeric version components to be followed directly by a
number.  (Bug#80744)
This commit is contained in:
Philip Kaludercic
2026-04-12 12:37:01 +02:00
parent b6e7c7d43b
commit dedd652fc5

View File

@@ -7625,7 +7625,7 @@ as a list.")
(directory-file-name dir))))
;; This needs to match only the version strings that can be
;; generated by `package-version-join'.
(if (string-match "\\([^.].*?\\)-\\([0-9]+\\(?:[.][0-9]+\\|\\(?:pre\\|beta\\|alpha\\|snapshot\\)[0-9]+\\)*\\)\\'" subdir)
(if (string-match "\\([^.].*?\\)-\\([0-9]+\\(?:[.][0-9]+\\|\\(?:pre\\|beta\\|alpha\\|snapshot\\)[0-9]*\\)*\\)\\'" subdir)
(match-string 1 subdir) subdir))
"-pkg.el"))