]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 826678: Disable warnings about the deprecated Return::Value module when loading...
authorFrédéric Buclin <LpSolit@gmail.com>
Sat, 5 Jan 2013 23:25:35 +0000 (00:25 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sat, 5 Jan 2013 23:25:35 +0000 (00:25 +0100)
r=wicked a=LpSolit

Bugzilla/Config/MTA.pm
Bugzilla/Install/Requirements.pm
Bugzilla/Mailer.pm

index bf038cf49300346c5ff092de371c489f50329f43..8184b9f5e7c668f32c1767db2fa637ca5c413e31 100644 (file)
@@ -10,6 +10,12 @@ package Bugzilla::Config::MTA;
 use strict;
 
 use Bugzilla::Config::Common;
+# Return::Value 1.666002 pollutes the error log with warnings about this
+# deprecated module. We have to set NO_CLUCK = 1 before loading Email::Send
+# to disable these warnings.
+BEGIN {
+    $Return::Value::NO_CLUCK = 1;
+}
 use Email::Send;
 
 our $sortkey = 1200;
index 0cdc3b29194c47511f5459b813c3a73a500c8573..493b78eddb48db4d020c046f2a75a7626597b482 100644 (file)
@@ -22,6 +22,13 @@ use List::Util qw(max);
 use Safe;
 use Term::ANSIColor;
 
+# Return::Value 1.666002 pollutes the error log with warnings about this
+# deprecated module. We have to set NO_CLUCK = 1 before loading Email::Send
+# in have_vers() to disable these warnings.
+BEGIN {
+    $Return::Value::NO_CLUCK = 1;
+}
+
 use base qw(Exporter);
 our @EXPORT = qw(
     REQUIRED_MODULES
index 5ef7310635d1b76212dd4f529d36778705bfea9f..64640150ba3cd68bc5d823abfb7152f3317921d7 100644 (file)
@@ -23,6 +23,12 @@ use Encode qw(encode);
 use Encode::MIME::Header;
 use Email::Address;
 use Email::MIME;
+# Return::Value 1.666002 pollutes the error log with warnings about this
+# deprecated module. We have to set NO_CLUCK = 1 before loading Email::Send
+# to disable these warnings.
+BEGIN {
+    $Return::Value::NO_CLUCK = 1;
+}
 use Email::Send;
 
 sub MessageToMTA {