diff options
author | Joey Hess <joey@kitenet.net> | 2011-09-12 18:52:42 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-09-12 18:52:42 -0400 |
commit | 08fd6e5a07b96c2d7792a66458408916b754c97a (patch) | |
tree | cb4530fd714e1e7f4dd11e3c46765b644068a4a1 /Debian | |
parent | 63157c540e451c47bd334c295cd11c576808b5f0 (diff) | |
download | debhelper-08fd6e5a07b96c2d7792a66458408916b754c97a.tar.gz |
dh: Avoid compat deprecation warning before option parsing. Closes: #641361
Diffstat (limited to 'Debian')
-rw-r--r-- | Debian/Debhelper/Dh_Lib.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm index e28cb326..60f13c30 100644 --- a/Debian/Debhelper/Dh_Lib.pm +++ b/Debian/Debhelper/Dh_Lib.pm @@ -328,6 +328,7 @@ sub dirname { sub compat { my $num=shift; + my $nowarn=shift; if (! defined $c) { $c=1; @@ -349,7 +350,7 @@ sub dirname { } } - if ($c <= 4 && ! $warned_compat) { + if ($c <= 4 && ! $warned_compat && ! $nowarn) { warning("Compatibility levels before 5 are deprecated."); $warned_compat=1; } |