summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Dh_Getopt.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-02-02 12:12:03 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-02-02 12:12:03 -0500
commit15be6e57dee48ce8925c987db72985ab7097837b (patch)
tree700ba1112013c7c7b1842e15a96931a744504503 /Debian/Debhelper/Dh_Getopt.pm
parent67e051e9c48096391f1e070c7190a11f09c28d2c (diff)
Fix handling of -O with options specified by commands. Closes: #568081
Diffstat (limited to 'Debian/Debhelper/Dh_Getopt.pm')
-rw-r--r--Debian/Debhelper/Dh_Getopt.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Debian/Debhelper/Dh_Getopt.pm b/Debian/Debhelper/Dh_Getopt.pm
index 214fa2d..f536487 100644
--- a/Debian/Debhelper/Dh_Getopt.pm
+++ b/Debian/Debhelper/Dh_Getopt.pm
@@ -157,7 +157,9 @@ sub getoptions {
foreach my $opt (@test) {
# Try to parse an option, and skip it
# if it is not known.
- if (getoptions([$opt], test => 1)) {
+ if (getoptions([$opt], %params,
+ ignore_unknown_options => 0,
+ test => 1)) {
getoptions([$opt], %params);
}
}