gnu-maintenance: Recognize source tarball with "-src" in their name.
authorLudovic Courtès <ludo@gnu.org>
Thu, 14 Apr 2016 19:48:05 +0000 (21:48 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 14 Apr 2016 22:32:18 +0000 (00:32 +0200)
* guix/gnu-maintenance.scm (tarball->version): Add special case for
tarball names containing "-src".

guix/gnu-maintenance.scm

index f97f2d1..353892f 100644 (file)
@@ -258,9 +258,13 @@ true."
               (lambda (match)
                 ;; Filter out unrelated files, like `guile-www-1.1.1'.
                 ;; Case-insensitive for things like "TeXmacs" vs. "texmacs".
+                ;; The "-src" suffix is for "freefont-src-20120503.tar.gz".
                 (and=> (match:substring match 1)
                        (lambda (name)
-                         (string-ci=? name project)))))
+                         (or (string-ci=? name project)
+                             (string-ci=? name
+                                          (string-append project
+                                                         "-src")))))))
        (not (regexp-exec %alpha-tarball-rx file))
        (let ((s (sans-extension file)))
          (regexp-exec %package-name-rx s))))