mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
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:
parent
99f42e14d4
commit
1d5a946ce5
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue