diff options
author | Jean Delvare <khali@linux-fr.org> | 2006-04-19 06:57:11 +0000 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2006-04-19 06:57:11 +0000 |
commit | d2c4c23e360607dfe549565665ac21cce15dedf3 (patch) | |
tree | 6115e88962d8c2e0c3c3d46178429c7b3cc47f1e /compat | |
parent | f6a8ae7df0cec110350fc6016868c09b4facbcb7 (diff) | |
download | quilt-d2c4c23e360607dfe549565665ac21cce15dedf3.tar.gz |
- compat/getopt.in: Ignore option -q, rather than failing on it.
This prevents the test suite from failing on patch-wrapper
when --without-getopt is used. Reported by Markus Oberhumer.
Diffstat (limited to 'compat')
-rw-r--r-- | compat/getopt.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/getopt.in b/compat/getopt.in index 5621a62..0bcf7b9 100644 --- a/compat/getopt.in +++ b/compat/getopt.in @@ -38,7 +38,8 @@ my @long_opts; # nothing fancy to see here; this script provides minimal compatibility # with the getopt from util-linux until a cross platform binary exists. -if ($opts =~ /^\s*-o ([a-zA-Z:]*)?(\s+--long .*)*/) { +# We silently ignore option -q. +if ($opts =~ /^\s*(?:-q\s+)?-o ([a-zA-Z:]*)?(\s+--long .*)*/) { $short_opts = $1; if ($2) { my $long_opts = $2; |