[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/12: gnu-maintenance: 'release-file?' accepts 'v' prefix as in "PKG-v1
From: |
guix-commits |
Subject: |
08/12: gnu-maintenance: 'release-file?' accepts 'v' prefix as in "PKG-v1.2.tgz". |
Date: |
Fri, 28 May 2021 17:05:12 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit d7c356edb9719f1e236ee926c0288f914076481a
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri May 28 22:43:21 2021 +0200
gnu-maintenance: 'release-file?' accepts 'v' prefix as in "PKG-v1.2.tgz".
* guix/gnu-maintenance.scm (%tarball-rx, %package-name-rx): Accept 'v'
and 'V' prefixes. Accept ".tgz" extension.
* tests/gnu-maintenance.scm ("release-file?"): Add test.
---
guix/gnu-maintenance.scm | 5 +++--
tests/gnu-maintenance.scm | 3 ++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm
index fece84b..4e3a54d 100644
--- a/guix/gnu-maintenance.scm
+++ b/guix/gnu-maintenance.scm
@@ -243,7 +243,8 @@ network to check in GNU's database."
;; The "-src" pattern is for "TeXmacs-1.0.7.9-src.tar.gz".
;; The "-gnu[0-9]" pattern is for "icecat-38.4.0-gnu1.tar.bz2".
;; Accept underscores as in "PKG_1.2.tar.gz" for some non-GNU packages.
- (make-regexp
"^([^.]+)[-_]([0-9]|[^-])+(-(src|[sS]ource|gnu[0-9]))?\\.(tar\\.|zip$)"))
+ ;; Accept 'v' or 'V' prefix as in 'PKG-v2.3.tgz'.
+ (make-regexp
"^([^.]+)[-_][vV]?([0-9]|[^-])+(-(src|[sS]ource|gnu[0-9]))?\\.(tar\\.|tgz|zip$)"))
(define %alpha-tarball-rx
(make-regexp
"^.*-.*[0-9](-|~)?(alpha|beta|rc|RC|cvs|svn|git)-?[0-9\\.]*\\.tar\\."))
@@ -596,7 +597,7 @@ list available from %GNU-FILE-LIST-URI over HTTP(S)."
(define %package-name-rx
;; Regexp for a package name, e.g., "foo-X.Y". Since TeXmacs uses
;; "TeXmacs-X.Y-src", the `-src' suffix is allowed.
- (make-regexp "^(.*)[-_](([0-9]|\\.)+)(-src|\\.src|\\.orig)?"))
+ (make-regexp "^(.*)[-_][vV]?(([0-9]|\\.)+)(-src|\\.src|\\.orig)?"))
(define (gnu-package-name->name+version name+version)
"Return the package name and version number extracted from NAME+VERSION."
diff --git a/tests/gnu-maintenance.scm b/tests/gnu-maintenance.scm
index 837b800..c04d8ba 100644
--- a/tests/gnu-maintenance.scm
+++ b/tests/gnu-maintenance.scm
@@ -34,7 +34,8 @@
("mediainfo" "mediainfo_20.09.tar.xz")
("exiv2" "exiv2-0.27.3-Source.tar.gz")
("mpg321" "mpg321_0.3.2.orig.tar.gz")
- ("bvi" "bvi-1.4.1.src.tar.gz")))
+ ("bvi" "bvi-1.4.1.src.tar.gz")
+ ("hostscope" "hostscope-V2.1.tgz")))
(every (lambda (project+file)
(not (apply release-file? project+file)))
'(("guile" "guile-www-1.1.1.tar.gz")
- branch master updated (b1ae0f3 -> cefa260), guix-commits, 2021/05/28
- 01/12: guix package: Do not warn about "missing arguments" when there's nothing to do., guix-commits, 2021/05/28
- 09/12: gnu-maintenance: 'generic-html' correctly handles relative release URLs., guix-commits, 2021/05/28
- 03/12: guix build: Emit "nothing to do" warning only when needed., guix-commits, 2021/05/28
- 12/12: gnu: xjobs: Add 'release-monitoring-url' property., guix-commits, 2021/05/28
- 07/12: gnu: Add hostscope., guix-commits, 2021/05/28
- 10/12: gnu: hostscope: Add 'release-monitoring-url' property., guix-commits, 2021/05/28
- 02/12: doc: Spell out the implications of disabling substitutes., guix-commits, 2021/05/28
- 06/12: gnu: Add mbuffer., guix-commits, 2021/05/28
- 11/12: gnu: Add xjobs., guix-commits, 2021/05/28
- 08/12: gnu-maintenance: 'release-file?' accepts 'v' prefix as in "PKG-v1.2.tgz".,
guix-commits <=
- 05/12: gnu: ipopt: Update to 3.13.4, guix-commits, 2021/05/28
- 04/12: gnu: Add cbc., guix-commits, 2021/05/28