From 2cdb306e0e81fe9a7a94c19f21c6d41a00155c96 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 6 Feb 2011 08:15:16 -0800 Subject: [PATCH] Make use of USE_LOCAL_MODULES independent of export Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Compiler.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Compiler.pm b/Shorewall/Perl/Shorewall/Compiler.pm index 4c09e34fa..cd4f94588 100644 --- a/Shorewall/Perl/Shorewall/Compiler.pm +++ b/Shorewall/Perl/Shorewall/Compiler.pm @@ -336,7 +336,7 @@ sub generate_script_3($) { save_progress_message 'Initializing...'; - if ( $export ) { + if ( $export || $config{USE_LOCAL_MODULES} ) { my $fn = find_file( $config{LOAD_HELPERS_ONLY} ? 'helpers' : 'modules' ); if ( -f $fn && ( $config{USE_LOCAL_MODULES} || ! $fn =~ "^$globals{SHAREDIR}/" ) ) {