[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-123-g2442417

? sunnavy sunnavy at bestpractical.com
Mon Aug 2 23:19:18 EDT 2010


The branch, 3.8-trunk has been updated
       via  24424172b1e276d291297abf8343eddd18480266 (commit)
      from  840856f77dc40a05adc0a4a8577542833865e695 (commit)

Summary of changes:
 bin/webmux.pl.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 24424172b1e276d291297abf8343eddd18480266
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Aug 3 11:20:06 2010 +0800

    die webmux.pl if major&minor version in loaded RT is inconstent with RT that generated this webmux.pl, see also #15375

diff --git a/bin/webmux.pl.in b/bin/webmux.pl.in
index cef5050..48d4633 100755
--- a/bin/webmux.pl.in
+++ b/bin/webmux.pl.in
@@ -128,6 +128,8 @@ BEGIN {
 }
 
 require RT;
+die "Wrong version of RT $RT::Version found; need @RT_VERSION_MAJOR at .@RT_VERSION_MINOR at .*"
+    unless $RT::VERSION =~ /^@RT_VERSION_MAJOR@\. at RT_VERSION_MINOR@\./;
 RT::LoadConfig();
 if ( RT->Config->Get('DevelMode') ) {
     require Module::Refresh;

-----------------------------------------------------------------------


More information about the Rt-commit mailing list