Explorar el Código

dpkg-parsechangelog: Fix an error in command line parsing

Frank Lichtenheld hace 18 años
padre
commit
2d2cda573d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      scripts/dpkg-parsechangelog.pl

+ 2 - 2
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); }