[freeside-commits] freeside/rt/lib RT.pm, 1.10, 1.10.4.1 RT.pm.in, 1.4, 1.4.4.1
Ivan,,,
ivan at wavetail.420.am
Fri Apr 8 16:13:51 PDT 2011
- Previous message: [freeside-commits] freeside/rt/etc RT_Config.pm, 1.10, 1.10.4.1 RT_Config.pm.in, 1.11.4.3, 1.11.4.4
- Next message: [freeside-commits] freeside/rt/lib/RT Action.pm, 1.1.1.1.4.1, 1.1.1.1.4.2 Condition.pm, 1.1.1.1.4.1, 1.1.1.1.4.2 Config.pm, 1.5.4.2, 1.5.4.3 CustomField.pm, 1.2, 1.2.2.1 CustomField_Overlay.pm, 1.2, 1.2.4.1 Date.pm, 1.1.1.9.4.1, 1.1.1.9.4.2 Groups_Overlay.pm, 1.5, 1.5.4.1 Principal_Overlay.pm, 1.1.1.12.4.1, 1.1.1.12.4.2 Queue_Overlay.pm, 1.1.1.12.4.1, 1.1.1.12.4.2 Record.pm, 1.8, 1.8.4.1 Scrip_Overlay.pm, 1.1.1.11.4.1, 1.1.1.11.4.2 SearchBuilder.pm, 1.8, 1.8.4.1 System.pm, 1.1.1.8.4.1, 1.1.1.8.4.2 Test.pm, 1.1.1.2.4.1, 1.1.1.2.4.2 Tickets_Overlay.pm, 1.5.2.6, 1.5.2.7 Transaction_Overlay.pm, 1.4, 1.4.4.1 User_Overlay.pm, 1.6, 1.6.4.1 Users_Overlay.pm, 1.5, 1.5.4.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/rt/lib
In directory wavetail.420.am:/tmp/cvs-serv23950/lib
Modified Files:
Tag: FREESIDE_2_1_BRANCH
RT.pm RT.pm.in
Log Message:
landing 3.8.9 on 2.1 branch for 2.1.3
Index: RT.pm.in
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RT.pm.in,v
retrieving revision 1.4
retrieving revision 1.4.4.1
diff -u -w -d -r1.4 -r1.4.4.1
--- RT.pm.in 18 May 2010 19:58:39 -0000 1.4
+++ RT.pm.in 8 Apr 2011 23:13:49 -0000 1.4.4.1
@@ -2,8 +2,8 @@
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC
-# <jesse at bestpractical.com>
+# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC
+# <sales at bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
#
@@ -401,13 +401,20 @@
die sprintf "RT requires Perl v5.8.3 or newer. Your current Perl is v%vd\n", $^V;
}
- local ($@);
+ # use $error here so the following "die" can still affect the global $@
+ my $error;
+ {
+ local $@;
eval {
my $x = '';
my $y = \$x;
- require Scalar::Util; Scalar::Util::weaken($y);
+ require Scalar::Util;
+ Scalar::Util::weaken($y);
};
- if ($@) {
+ $error = $@;
+ }
+
+ if ($error) {
die <<"EOF";
RT requires the Scalar::Util module be built with support for the 'weaken'
@@ -487,7 +494,10 @@
my $scrips = RT::Scrips->new($RT::SystemUser);
$scrips->Limit( FIELD => 'Stage', OPERATOR => '!=', VALUE => 'Disabled' );
while ( my $scrip = $scrips->Next ) {
- $scrip->LoadModules;
+ local $@;
+ eval { $scrip->LoadModules } or
+ $RT::Logger->error("Invalid Scrip ".$scrip->Id.". Unable to load the Action or Condition. ".
+ "You should delete or repair this Scrip in the admin UI.\n$@\n");
}
foreach my $class ( grep $_, RT->Config->Get('CustomFieldValuesSources') ) {
Index: RT.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/lib/RT.pm,v
retrieving revision 1.10
retrieving revision 1.10.4.1
diff -u -w -d -r1.10 -r1.10.4.1
--- RT.pm 18 May 2010 19:58:39 -0000 1.10
+++ RT.pm 8 Apr 2011 23:13:49 -0000 1.10.4.1
@@ -2,8 +2,8 @@
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC
-# <jesse at bestpractical.com>
+# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC
+# <sales at bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
#
@@ -57,7 +57,7 @@
use vars qw($Config $System $SystemUser $Nobody $Handle $Logger $_INSTALL_MODE);
-our $VERSION = '3.8.8';
+our $VERSION = '3.8.9';
@@ -401,13 +401,20 @@
die sprintf "RT requires Perl v5.8.3 or newer. Your current Perl is v%vd\n", $^V;
}
- local ($@);
+ # use $error here so the following "die" can still affect the global $@
+ my $error;
+ {
+ local $@;
eval {
my $x = '';
my $y = \$x;
- require Scalar::Util; Scalar::Util::weaken($y);
+ require Scalar::Util;
+ Scalar::Util::weaken($y);
};
- if ($@) {
+ $error = $@;
+ }
+
+ if ($error) {
die <<"EOF";
RT requires the Scalar::Util module be built with support for the 'weaken'
@@ -487,7 +494,10 @@
my $scrips = RT::Scrips->new($RT::SystemUser);
$scrips->Limit( FIELD => 'Stage', OPERATOR => '!=', VALUE => 'Disabled' );
while ( my $scrip = $scrips->Next ) {
- $scrip->LoadModules;
+ local $@;
+ eval { $scrip->LoadModules } or
+ $RT::Logger->error("Invalid Scrip ".$scrip->Id.". Unable to load the Action or Condition. ".
+ "You should delete or repair this Scrip in the admin UI.\n$@\n");
}
foreach my $class ( grep $_, RT->Config->Get('CustomFieldValuesSources') ) {
- Previous message: [freeside-commits] freeside/rt/etc RT_Config.pm, 1.10, 1.10.4.1 RT_Config.pm.in, 1.11.4.3, 1.11.4.4
- Next message: [freeside-commits] freeside/rt/lib/RT Action.pm, 1.1.1.1.4.1, 1.1.1.1.4.2 Condition.pm, 1.1.1.1.4.1, 1.1.1.1.4.2 Config.pm, 1.5.4.2, 1.5.4.3 CustomField.pm, 1.2, 1.2.2.1 CustomField_Overlay.pm, 1.2, 1.2.4.1 Date.pm, 1.1.1.9.4.1, 1.1.1.9.4.2 Groups_Overlay.pm, 1.5, 1.5.4.1 Principal_Overlay.pm, 1.1.1.12.4.1, 1.1.1.12.4.2 Queue_Overlay.pm, 1.1.1.12.4.1, 1.1.1.12.4.2 Record.pm, 1.8, 1.8.4.1 Scrip_Overlay.pm, 1.1.1.11.4.1, 1.1.1.11.4.2 SearchBuilder.pm, 1.8, 1.8.4.1 System.pm, 1.1.1.8.4.1, 1.1.1.8.4.2 Test.pm, 1.1.1.2.4.1, 1.1.1.2.4.2 Tickets_Overlay.pm, 1.5.2.6, 1.5.2.7 Transaction_Overlay.pm, 1.4, 1.4.4.1 User_Overlay.pm, 1.6, 1.6.4.1 Users_Overlay.pm, 1.5, 1.5.4.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list