The following commit has been merged in the master branch:
commit a86454180804ee6b54732697e2105708dfce1b82
Author: Guillem Jover <[email protected]>
Date:   Thu Jul 25 03:27:54 2013 +0200

    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.

diff --git a/scripts/dpkg-parsechangelog.pl b/scripts/dpkg-parsechangelog.pl
index 257524f..b7b92ef 100755
--- a/scripts/dpkg-parsechangelog.pl
+++ b/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;

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to