summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2006-04-19 06:57:11 +0000
committerJean Delvare <khali@linux-fr.org>2006-04-19 06:57:11 +0000
commitd2c4c23e360607dfe549565665ac21cce15dedf3 (patch)
tree6115e88962d8c2e0c3c3d46178429c7b3cc47f1e /compat
parentf6a8ae7df0cec110350fc6016868c09b4facbcb7 (diff)
downloadquilt-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.in3
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;