Skip to content

Commit

Permalink
Item14203: Added support forgotten 'withExtensions' import parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Nov 8, 2016
1 parent 0426751 commit 3c236e0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions core/lib/Foswiki/Aux/Dependencies.pm
Expand Up @@ -118,6 +118,10 @@ sub import {
my (%params) = @_;

$rootDir = $params{rootDir} // $ENV{FOSWIKI_HOME};
$DEBUG //= $params{debug};

_dbg( "IMPORTING ", __PACKAGE__ );
_dbg( "PARAMS:", join( ", ", map { "$_ => $params{$_}" } keys %params ) );

if ( !$rootDir ) {

Expand Down Expand Up @@ -146,8 +150,8 @@ sub import {
if ( Foswiki::Aux::Dependencies::isFirstRun() ) {
my $noPerlBin = 1
; # Must be dynamically checked later for, say, mod_perl environment.
my $withExtensions = 0;
my @profile = (
my $withExtensions = $params{withExtensions} // 0;
my @profile = (
rootDir => $rootDir,
doUpgrade => 0,
inlineExec => $noPerlBin,
Expand Down Expand Up @@ -179,9 +183,10 @@ sub import {

# Isert lib path to the beginning prefer locally installed modules over
# system ones.
unshift @INC, $localLib unless $inc{$localLib};
_dbg( "Adding ", $localLib, " to \@INC" );
push @INC, $localLib unless $inc{$localLib};
}
else {
if ( !$OK || $DEBUG ) {
say STDERR
join( "\n", "---MESSAGES BEGIN---", @messages, "---MESSAGES END---" );
}
Expand Down

0 comments on commit 3c236e0

Please sign in to comment.