From 2d2cda573d619b203b944d48e80acb56026be4f9 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Thu, 6 Dec 2007 05:12:50 +0100 Subject: [PATCH] dpkg-parsechangelog: Fix an error in command line parsing --- scripts/dpkg-parsechangelog.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.5