Skip to content

Commit

Permalink
Item13897: Fixed 'withExtensions' didn't pass to checkDependecies()
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Oct 25, 2016
1 parent 05ba030 commit 16ad2a5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions core/lib/Foswiki/Aux/Dependencies.pm
Expand Up @@ -115,9 +115,9 @@ my $DEBUG = $ENV{FOSWIKI_ASSERTS};

sub import {
my $target = shift;
my (%profile) = @_;
my (%params) = @_;

$rootDir = $profile{rootDir} // $ENV{FOSWIKI_HOME};
$rootDir = $params{rootDir} // $ENV{FOSWIKI_HOME};

if ( !$rootDir ) {

Expand All @@ -142,7 +142,7 @@ sub import {

$OK = 1;

if ( $profile{firstRunCheck} ) {
if ( $params{firstRunCheck} ) {
if ( Foswiki::Aux::Dependencies::isFirstRun() ) {
my $noPerlBin = 1
; # Must be dynamically checked later for, say, mod_perl environment.
Expand All @@ -152,20 +152,20 @@ sub import {
doUpgrade => 0,
inlineExec => $noPerlBin,
);
if ( defined $profile{requiredExtensions} ) {
if ( ref( $profile{requiredExtensions} ) eq 'ARRAY' ) {
if ( defined $params{requiredExtensions} ) {
if ( ref( $params{requiredExtensions} ) eq 'ARRAY' ) {
_dbg( "Mandatory extensions: ",
join( ",", @{ $profile{requiredExtensions} } ) );
join( ",", @{ $params{requiredExtensions} } ) );
$withExtensions = 1;
push @profile,
requiredExtensions => $profile{requiredExtensions};
requiredExtensions => $params{requiredExtensions};
}
else {
_msg( "requiredExtensions is not an array ref but "
. ref( $profile{requiredExtensions} ) );
. ref( $params{requiredExtensions} ) );
}
}
$profile{withExtensions} = $withExtensions;
push @profile, withExtensions => $withExtensions;
_dbg( "Collecting DEPENDENCIES ",
( $withExtensions ? "with extensions" : "for core only" ) );
$OK = Foswiki::Aux::Dependencies::checkDependencies(@profile);
Expand Down

0 comments on commit 16ad2a5

Please sign in to comment.