[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#575192: [check/nmu] lintian do not understand changelog with several authors



tags 575192 + patch
kthxbye

I believe this check should only be done on action lines - And given
that bracketed lines are now widely used for multi-maintainer entries,
`$firstline' should match only action lines, thus this simple patch:

--- /usr/share/lintian/checks/nmu	2010-01-31 03:02:32.000000000 -0600
+++ /tmp/nmu	2010-04-12 10:31:47.000000000 -0500
@@ -58,7 +58,7 @@
 my $uploader = canonicalize($entry->Maintainer);
 my $changes = $entry->Changes;
 $changes =~ s/^(\s*\n)+//;
-my $firstline = (split('\n', $changes))[0];
+my $firstline = (grep /^\s*\*/, split('\n', $changes))[0];
 
 # Check the first line for QA and NMU mentions.
 if ($firstline) {


-- 
Gunnar Wolf • gwolf@gwolf.org • (+52-55)5623-0154 / 1451-2244



Reply to: