1
0
Fork 0
mirror of https://github.com/correl/melpa.git synced 2025-04-09 01:01:06 -09:00

Make a valid Emacs version string before building.

In certain cases there are version numbers that are valid to Emacs but
get translated into something different after parsing to a
list (version-to-list) and then back to a string (package-version-join).
So before we start passing around the original version string we simply
regenerate it using the Emacs functions so it is consistent during the
building process.

Fixes 
Fixes 
This commit is contained in:
Donald Curtis 2014-09-12 06:30:14 -04:00
parent aa04ccd0ac
commit 16beacfdcf

View file

@ -970,8 +970,10 @@ and a cl struct in Emacs HEAD. This wrapper normalises the results."
(make-directory package-build-archive-dir)) (make-directory package-build-archive-dir))
(pb/message "\n;;; %s\n" file-name) (pb/message "\n;;; %s\n" file-name)
(let* ((version (or (package-build-checkout name rcp pkg-working-dir) (let* ((version (package-version-join
(error "No valid package version found!"))) (version-to-list
(or (package-build-checkout name rcp pkg-working-dir)
(error "No valid package version found!")))))
(default-directory package-build-working-dir) (default-directory package-build-working-dir)
(start-time (current-time)) (start-time (current-time))
(archive-entry (package-build-package (symbol-name name) (archive-entry (package-build-package (symbol-name name)