lintian: r457 - in trunk: checks testset/diffs/debian
Author: djpig
Date: 2005-07-24 01:03:11 +0200 (Sun, 24 Jul 2005)
New Revision: 457
Modified:
trunk/checks/changelog-file
trunk/testset/diffs/debian/changelog
Log:
Avoid some false positives for the wrong-bug-number check
Modified: trunk/checks/changelog-file
===================================================================
--- trunk/checks/changelog-file 2005-07-23 19:34:47 UTC (rev 456)
+++ trunk/checks/changelog-file 2005-07-23 23:03:11 UTC (rev 457)
@@ -258,11 +258,11 @@
my ($prefix, $suffix);
while (<IN>) {
- if (/closes:\s*((?:bug)?\#?\s?\d*[[:alpha:]]\w*)/io
+ if (/closes:\s*(((?:bug)?\#?\s?\d*)[[:alpha:]]\w*)/io
|| /closes:\s*(?:bug)?\#?\s?\d+
(?:,\s*(?:bug)?\#?\s?\d+)*
- (?:,\s*((?:bug)?\#?\s?\d*[[:alpha:]]\w*))/iox) {
- tag "wrong-bug-number-in-closes", $1;
+ (?:,\s*(((?:bug)?\#?\s?\d*)[[:alpha:]]\w*))/iox) {
+ tag "wrong-bug-number-in-closes", $1 if $2;
}
if (/^(.*)Local variables:(.*)$/i) {
Modified: trunk/testset/diffs/debian/changelog
===================================================================
--- trunk/testset/diffs/debian/changelog 2005-07-23 19:34:47 UTC (rev 456)
+++ trunk/testset/diffs/debian/changelog 2005-07-23 23:03:11 UTC (rev 457)
@@ -2,9 +2,10 @@
* Initial version
(Closes: #123456)
+ closes: Bug#123456
(Closes: #nnnnnn)
(Closes: #123nnn)
(Closes: #1, #foo)
- (Closes: #1, #2, #bar)
+ (Closes: #1, Bug#2, #bar)
-- Lintian Maintainers <lintian-maint@debian.org> Wed, 27 Nov 2002 14:15:00 +0100
Reply to: