From e9f38113908414792ce2e5c1d3203cc8e5cb938b Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 11 Sep 2017 11:40:32 +0200 Subject: 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. --- guix/gnu-maintenance.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm index 7c7ca65d7b..c903b740ba 100644 --- a/guix/gnu-maintenance.scm +++ b/guix/gnu-maintenance.scm @@ -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) -- cgit v1.2.3