gnu-maintenance: 'latest-html-release' better computes version number.

* guix/gnu-maintenance.scm (latest-html-release): Use 'tarball->version'
rather than 'package-name->name+version' to extract the version number.
This fixes problems with packages like 'netsurf' and 'libdom' that have
"-src" in their tarball name, where "src" would be taken as the new
version number.
This commit is contained in:
Ludovic Courtès 2021-03-13 22:35:28 +01:00
parent 99f42e14d4
commit 1d5a946ce5
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -499,12 +499,9 @@ (define (url->release url)
(string-append base-url directory "/" url)
url)))
(and (release-file? package base)
(let-values (((name version)
(package-name->name+version
(tarball-sans-extension base)
#\-)))
(let ((version (tarball->version base)))
(upstream-source
(package name)
(package package)
(version version)
(urls (list url))
(signature-urls