[lintian] 01/01: Ignore entries that end with ":" to avoid false-positives in the debian-changelog-line-too-short. Thanks to Mattia Rizollo for the report. (Closes: #892197)
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository lintian.
commit a9155a48d209260d3c3377cd45c5bece490c5861
Author: Chris Lamb <lamby@debian.org>
Date: Tue Mar 6 22:43:42 2018 -0800
Ignore entries that end with ":" to avoid false-positives in the debian-changelog-line-too-short. Thanks to Mattia Rizollo for the report. (Closes: #892197)
---
checks/changelog-file.pm | 2 +-
debian/changelog | 4 ++++
t/tests/changelog-file-line-too-short/debian/debian/changelog.in | 3 +++
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/checks/changelog-file.pm b/checks/changelog-file.pm
index 7dd61c9..aa5331f 100644
--- a/checks/changelog-file.pm
+++ b/checks/changelog-file.pm
@@ -484,7 +484,7 @@ sub run {
for my $i (0 .. $#lines) {
my $line = $i + $chloff;
tag 'debian-changelog-line-too-short', $1, "(line $line)"
- if $lines[$i] =~ /^ [*]\s(.{1,5})$/;
+ if $lines[$i] =~ /^ [*]\s(.{1,5})$/ and $1 !~ /:$/;
if (length($lines[$i]) > 81
and $lines[$i] !~ /^[\s.o*+-]*(?:[Ss]ee:?\s+)?\S+$/) {
tag 'debian-changelog-line-too-long', "line $line";
diff --git a/debian/changelog b/debian/changelog
index 774d88c..8b74ebd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,10 @@ lintian (2.5.79) UNRELEASED; urgency=medium
XXX: generate tag summary
+ * checks/changelog-file.pm:
+ + [CL] Ignore entries that end with ":" to avoid false-positives in the
+ debian-changelog-line-too-short. Thanks to Mattia Rizollo for the
+ report. (Closes: #892197)
* checks/cruft.pm:
+ [CL] Check all subdirectories under /usr/share/doc/foo to test
whether we ship example files, not just /usr/share/doc/foo/examples/.
diff --git a/t/tests/changelog-file-line-too-short/debian/debian/changelog.in b/t/tests/changelog-file-line-too-short/debian/debian/changelog.in
index 2ba39b5..f268979 100644
--- a/t/tests/changelog-file-line-too-short/debian/debian/changelog.in
+++ b/t/tests/changelog-file-line-too-short/debian/debian/changelog.in
@@ -11,4 +11,7 @@
* dh 11.
* 123456
+ * These are false positives.
+ * 123:
+
-- {$author} {$date}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: