From: Frank Lichtenheld Date: Thu, 6 Dec 2007 04:12:50 +0000 (+0100) Subject: dpkg-parsechangelog: Fix an error in command line parsing X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d2cda573d619b203b944d48e80acb56026be4f9;p=dpkg dpkg-parsechangelog: Fix an error in command line parsing --- diff --git a/scripts/dpkg-parsechangelog.pl b/scripts/dpkg-parsechangelog.pl index 95401a21..d8b346bc 100755 --- a/scripts/dpkg-parsechangelog.pl +++ b/scripts/dpkg-parsechangelog.pl @@ -74,8 +74,8 @@ while (@ARGV) { if (m/^-l/ && length($_)>2) { $changelogfile=$POSTMATCH; next; } m/^--$/ && last; m/^-[cfnostuv]/ && next; - m/^--(all|count|file|from|offset|since|to|until)(.*)$/ && do { - push(@ap, shift(@ARGV)) unless $1; + m/^--(all|count|file|format|from|offset|since|to|until)(.*)$/ && do { + push(@ap, shift(@ARGV)) unless $2; next; }; if (m/^-(h|-help)$/) { &usage; exit(0); }