[Rt-commit] rt branch, 4.0/perl-5.19-cgi-deprecation, updated. rt-4.0.20-21-g2c95572
Alex Vandiver
alexmv at bestpractical.com
Tue May 27 14:02:06 EDT 2014
The branch, 4.0/perl-5.19-cgi-deprecation has been updated
via 2c95572fd6975e58d78ce0e4bb02f6c0b0d439fe (commit)
from fb1fecb5943704590268cf2aa0708c3bec96254a (commit)
Summary of changes:
sbin/rt-test-dependencies.in | 1 +
1 file changed, 1 insertion(+)
- Log -----------------------------------------------------------------
commit 2c95572fd6975e58d78ce0e4bb02f6c0b0d439fe
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Thu Feb 13 16:06:50 2014 -0500
Hide the CGI.pm "this is deprecated, install from CPAN" warnings
If other modules load CGI before we install the updated version, they
will get the in-core version, and trigger spurious deprecation warnings.
Quash deprecation warnings before loading to quiet this warning.
diff --git a/sbin/rt-test-dependencies.in b/sbin/rt-test-dependencies.in
index d8d3bed..7506713 100644
--- a/sbin/rt-test-dependencies.in
+++ b/sbin/rt-test-dependencies.in
@@ -461,6 +461,7 @@ sub test_dep {
print $module, ': ', $version || 0, "\n";
}
else {
+ no warnings 'deprecated';
eval "use $module $version ()";
if ( my $error = $@ ) {
return 0 unless wantarray;
-----------------------------------------------------------------------
More information about the rt-commit
mailing list