From dedd652fc58c2157e0c27df1ca2e5836a94ce641 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Sun, 12 Apr 2026 12:37:01 +0200 Subject: [PATCH] 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) --- lisp/subr.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/subr.el b/lisp/subr.el index 036f414262a..d97598ab61f 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -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"))