gnu-maintenance: Correctly compare versions.
* guix/gnu-maintenance.scm (latest-gnu-release): Add calls to 'sans-extension'. This fixes version comparison, which could be fooled with the ".tar.gz" extension.
This commit is contained in:
parent
21c2757f27
commit
e9f3811390
1 changed files with 3 additions and 3 deletions
|
@ -472,11 +472,11 @@ (define (latest-gnu-release package)
|
|||
(let* ((files (ftp.gnu.org-files))
|
||||
(relevant (filter (lambda (file)
|
||||
(and (string-contains file directory)
|
||||
(release-file? name (basename file))
|
||||
))
|
||||
(release-file? name (basename file))))
|
||||
files)))
|
||||
(match (sort relevant (lambda (file1 file2)
|
||||
(version>? (basename file1) (basename file2))))
|
||||
(version>? (sans-extension (basename file1))
|
||||
(sans-extension (basename file2)))))
|
||||
((tarball _ ...)
|
||||
(upstream-source
|
||||
(package name)
|
||||
|
|
Loading…
Reference in a new issue