summaryrefslogtreecommitdiff
path: root/Debian/Debhelper
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-23 19:12:50 -0400
committerJoey Hess <joey@kitenet.net>2010-05-23 19:12:50 -0400
commit00ed6d0cc8f74caf4a591152a97027194304383c (patch)
treee99542e2df021a4ae9af8ea6fd9f88ffa0e10878 /Debian/Debhelper
parent02fed65f218e1cb19feab24ac34c0c58b2b74aee (diff)
In v8 mode, do not allow directly passing unknown options to debhelper commands. (Unknown options in DH_OPTIONS still only result in warnings.)
Diffstat (limited to 'Debian/Debhelper')
-rw-r--r--Debian/Debhelper/Dh_Getopt.pm5
-rw-r--r--Debian/Debhelper/Dh_Lib.pm2
2 files changed, 4 insertions, 3 deletions
diff --git a/Debian/Debhelper/Dh_Getopt.pm b/Debian/Debhelper/Dh_Getopt.pm
index da14537..257fe64 100644
--- a/Debian/Debhelper/Dh_Getopt.pm
+++ b/Debian/Debhelper/Dh_Getopt.pm
@@ -218,8 +218,9 @@ sub parseopts {
my $ret=getoptions(\@ARGV, %params);
if (!$ret) {
- warning("warning: unknown options will be a fatal error in a future debhelper release");
- #error("unknown option; aborting");
+ if (! compat(7)) {
+ error("unknown option; aborting");
+ }
}
# Check to see if -V was specified. If so, but no parameters were
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index 09ec0b1..63d1f65 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -19,7 +19,7 @@ use vars qw(@ISA @EXPORT %dh);
&sourcepackage
&is_make_jobserver_unavailable &clean_jobserver_makeflags);
-my $max_compat=7;
+my $max_compat=8;
sub init {
my %params=@_;