[lintian] 02/02: checks/fields.pm: Include the offending Vcs-* line in the tag output.
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit 12432800cb3e3ac4d76353ace899304243631cb8
Author: Chris Lamb <lamby@debian.org>
Date: Thu Mar 1 10:29:27 2018 +0000
checks/fields.pm: Include the offending Vcs-* line in the tag output.
---
checks/fields.pm | 4 ++--
t/tests/fields-missing-vcs-browser/tags | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/fields.pm b/checks/fields.pm
index 7d71082..82866cb 100644
--- a/checks/fields.pm
+++ b/checks/fields.pm
@@ -1398,8 +1398,8 @@ sub run {
if (!defined $info->field('vcs-browser')) {
foreach my $regex ($KNOWN_VCS_BROWSERS->all) {
my $vcs = $KNOWN_VCS_BROWSERS->value($regex);
- if ($info->field("vcs-$vcs", '') =~ m/^$regex/xi) {
- tag 'missing-vcs-browser-field', "vcs-$vcs";
+ if ($info->field("vcs-$vcs", '') =~ m/^($regex.*)/xi) {
+ tag 'missing-vcs-browser-field', "vcs-$vcs", $1;
last; # Only warn once
}
}
diff --git a/t/tests/fields-missing-vcs-browser/tags b/t/tests/fields-missing-vcs-browser/tags
index 1901a32..cddc4f9 100644
--- a/t/tests/fields-missing-vcs-browser/tags
+++ b/t/tests/fields-missing-vcs-browser/tags
@@ -1 +1 @@
-I: fields-missing-vcs-browser source: missing-vcs-browser-field vcs-git
+I: fields-missing-vcs-browser source: missing-vcs-browser-field vcs-git https://salsa.debian.org/project/repo.git
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: