[lintian] 01/01: Update -unrel salsa tests and add Test-Against, etc.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit ae7f02af239a966d21cbe6792a60ff28a614d55f
Author: Chris Lamb <lamby@debian.org>
Date: Thu Feb 1 19:33:37 2018 +0000
Update -unrel salsa tests and add Test-Against, etc.
---
checks/fields.pm | 2 +-
.../debian/debian/control.in | 3 ++-
t/tests/fields-vcs-deprecated-in-debian-infrastructure-unrel/desc | 1 +
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/checks/fields.pm b/checks/fields.pm
index 58aa3c5..d04acab 100644
--- a/checks/fields.pm
+++ b/checks/fields.pm
@@ -175,7 +175,7 @@ my %VCS_CANONIFY = (
{https://anonscm.debian.org/git/};
$_[0] =~ s{\Qgit://anonscm.debian.org/git/\E}
{https://anonscm.debian.org/git/};
- $_[0] =~ s{https?\Q://salsa.debian.org/\E([^/]+/[^/]+)(?!\.git)$}
+ $_[0] =~ s{https?\Q://salsa.debian.org/\E([^/]+/[^/\.]+)(?!\.git)$}
{https://salsa.debian.org/$1.git};
},
hg => sub {
diff --git a/t/tests/fields-vcs-deprecated-in-debian-infrastructure-unrel/debian/debian/control.in b/t/tests/fields-vcs-deprecated-in-debian-infrastructure-unrel/debian/debian/control.in
index 2c6fcb3..f02a0d7 100644
--- a/t/tests/fields-vcs-deprecated-in-debian-infrastructure-unrel/debian/debian/control.in
+++ b/t/tests/fields-vcs-deprecated-in-debian-infrastructure-unrel/debian/debian/control.in
@@ -6,7 +6,8 @@ Standards-Version: {$standards_version}
Build-Depends: {$build_depends}
Rules-Requires-Root: no
Homepage: https://lintian.debian.org/
-Vcs-Git: https://salsa.debian.org/project/user
+Vcs-Git: https://salsa.debian.org/foo/bar.git
+Vcs-Browser: https://salsa.debian.org/foo/bar
Package: {$source}
Architecture: {$architecture}
diff --git a/t/tests/fields-vcs-deprecated-in-debian-infrastructure-unrel/desc b/t/tests/fields-vcs-deprecated-in-debian-infrastructure-unrel/desc
index 7e2a65a..32a95af 100644
--- a/t/tests/fields-vcs-deprecated-in-debian-infrastructure-unrel/desc
+++ b/t/tests/fields-vcs-deprecated-in-debian-infrastructure-unrel/desc
@@ -5,3 +5,4 @@ Options: -I -E --pedantic
Skeleton: pedantic
Test-Against:
vcs-deprecated-in-debian-infrastructure
+ vcs-field-not-canonical
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: