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:
@@ -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"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user