[SCM] Debian package checker branch, master, updated. 2.3.4-58-g93d28c1
The following commit has been merged in the master branch:
commit 93d28c10456c402056ca0a13c4cb1b38d10f7ea2
Author: Raphael Geissert <atomo64@gmail.com>
Date: Fri Mar 26 23:43:13 2010 -0600
Fix an infinite loop if the latest changelog entry is empty
diff --git a/checks/nmu b/checks/nmu
index f3c23ec..5889675 100644
--- a/checks/nmu
+++ b/checks/nmu
@@ -53,14 +53,17 @@ if (-l "debfiles/changelog") {
}
# Get some data from the changelog file.
+my $firstline = '';
my ($entry) = $info->changelog->data;
my $distribution = $entry->Distribution;
my $uploader = canonicalize($entry->Maintainer);
my $changes = $entry->Changes;
$changes =~ s/^(\s*\n)+//;
my @lines = split("\n", $changes);
-shift @lines while $lines[0] =~ /^\s*(?:\[.+\])?\s*$/;
-my $firstline = $lines[0];
+if (scalar @lines) {
+ shift @lines while $lines[0] =~ /^\s*(?:\[.+\])?\s*$/;
+ $firstline = $lines[0];
+}
# Check the first line for QA and NMU mentions.
if ($firstline) {
--
Debian package checker
Reply to: