The following commit has been merged in the master branch:
commit 93d28c10456c402056ca0a13c4cb1b38d10f7ea2
Author: Raphael Geissert <atom...@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


-- 
To UNSUBSCRIBE, email to debian-lint-maint-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/e1nvoqc-0007ny...@alioth.debian.org

Reply via email to