summaryrefslogtreecommitdiff
path: root/Debian
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-09-12 18:52:42 -0400
committerJoey Hess <joey@kitenet.net>2011-09-12 18:52:42 -0400
commit08fd6e5a07b96c2d7792a66458408916b754c97a (patch)
treecb4530fd714e1e7f4dd11e3c46765b644068a4a1 /Debian
parent63157c540e451c47bd334c295cd11c576808b5f0 (diff)
dh: Avoid compat deprecation warning before option parsing. Closes: #641361
Diffstat (limited to 'Debian')
-rw-r--r--Debian/Debhelper/Dh_Lib.pm3
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;
}