[Rt-commit] r4709 - in Module-Install-RTx: lib/Module/Install/RTx
ruz at bestpractical.com
ruz at bestpractical.com
Wed Mar 8 15:28:20 EST 2006
Author: ruz
Date: Wed Mar 8 15:28:20 2006
New Revision: 4709
Modified:
Module-Install-RTx/ (props changed)
Module-Install-RTx/lib/Module/Install/RTx/Factory.pm
Log:
r6780 at cubic-pc: cubic | 2006-03-08 23:33:31 +0300
* push local libs path into @INC
Modified: Module-Install-RTx/lib/Module/Install/RTx/Factory.pm
==============================================================================
--- Module-Install-RTx/lib/Module/Install/RTx/Factory.pm (original)
+++ Module-Install-RTx/lib/Module/Install/RTx/Factory.pm Wed Mar 8 15:28:20 2006
@@ -10,6 +10,8 @@
unshift @INC, substr(delete($INC{'RT.pm'}), 0, -5) if $INC{'RT.pm'};
require RT;
+ unshift @INC, "$RT::LocalPath/lib" if $RT::LocalPath;
+
$RT::SbinPath ||= $RT::LocalPath;
$RT::SbinPath =~ s/local$/sbin/;
@@ -21,8 +23,10 @@
RT::LoadConfig();
my $lib_path = File::Basename::dirname($INC{'RT.pm'});
- my @args = (
- "-Ilib", "-I$lib_path",
+ my @args = ("-Ilib");
+ push @args, "-I$RT::LocalPath/lib" if $RT::LocalPath;
+ push @args, (
+ "-I$lib_path",
"$RT::SbinPath/rt-setup-database",
"--action" => $action,
"--datadir" => "etc",
More information about the Rt-commit
mailing list