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
@ -472,11 +472,11 @@ list available from %GNU-FILE-LIST-URI over HTTP(S)."
|
||||
(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 New Issue
Block a user