]> err.no Git - dpkg/commitdiff
dpkg-parsechangelog: Fix an error in command line parsing
authorFrank Lichtenheld <djpig@debian.org>
Thu, 6 Dec 2007 04:12:50 +0000 (05:12 +0100)
committerFrank Lichtenheld <djpig@debian.org>
Thu, 6 Dec 2007 04:12:50 +0000 (05:12 +0100)
scripts/dpkg-parsechangelog.pl

index 95401a21fb25ec050ee379a65c3c78b6c917efe0..d8b346bc5e8d6c88f20c7b6157aaa8ebf3035ba7 100755 (executable)
@@ -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); }