[SCM] Debian package checker branch, master, updated. 2.3.4-59-g669d8b6
The following commit has been merged in the master branch:
commit 669d8b6a9afb1be127bfa2526b01a9c88392c2ce
Author: Russ Allbery <rra@debian.org>
Date: Fri Mar 26 22:57:09 2010 -0700
Minor tweak to the infinite loop fix in checks/nmu
diff --git a/checks/nmu b/checks/nmu
index 5889675..a02b995 100644
--- a/checks/nmu
+++ b/checks/nmu
@@ -60,10 +60,8 @@ my $uploader = canonicalize($entry->Maintainer);
my $changes = $entry->Changes;
$changes =~ s/^(\s*\n)+//;
my @lines = split("\n", $changes);
-if (scalar @lines) {
- shift @lines while $lines[0] =~ /^\s*(?:\[.+\])?\s*$/;
- $firstline = $lines[0];
-}
+shift @lines while (@lines && $lines[0] =~ /^\s*(?:\[.+\])?\s*$/);
+$firstline = $lines[0];
# Check the first line for QA and NMU mentions.
if ($firstline) {
--
Debian package checker
Reply to: