Bläddra i källkod

dpkg-parsechangelog: Unify -S option parsing with other short options

Expect the value for short options contiguous to the option itself,
instead of diverging and accepting it only as the next argument.
Guillem Jover 13 år sedan
förälder
incheckning
a864541808
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      scripts/dpkg-parsechangelog.pl

+ 3 - 1
scripts/dpkg-parsechangelog.pl

@@ -83,7 +83,9 @@ while (@ARGV) {
 	$options{changelogformat} = $1;
     } elsif (m/^-l(.+)$/) {
 	$options{file} = $1;
-    } elsif (m/^-(?:S|-show-field)(?:=(.+))?$/) {
+    } elsif (m/^-S(.+)$/) {
+	$fieldname = $1;
+    } elsif (m/^--show-field(?:=(.+))?$/) {
 	$fieldname = $1 // shift(@ARGV);
     } elsif (m/^--$/) {
 	last;