Skip to content

Commit

Permalink
Item13897: Made _dbg more like 'say' built-in.
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Oct 25, 2016
1 parent 497c5bc commit 05ba030
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/lib/Foswiki/Aux/Dependencies.pm
Expand Up @@ -192,11 +192,15 @@ sub _msg {
push @messages, @_;
}

sub _dbg {
sub _dbg_print {
return unless $DEBUG;
print STDERR @_;
}

sub _dbg {
_dbg_print @_, "\n";
}

sub _say {
my $profile = shift;
if ( $profile->{verbose} ) {
Expand Down Expand Up @@ -472,6 +476,7 @@ sub readDependencies {
}

if ( $profile->{withExtensions} ) {
_dbg("Scanning for extensions.");
_findExtDependecies($profile);
}

Expand Down Expand Up @@ -764,7 +769,7 @@ sub installDependencies {
my $optional = ( $depEntry->{fromExt} && $extOptional )
|| $depEntry->{description} !~ /^required/i;

_dbg("Checking for $depEntry->{module} from $depEntry->{source}\n");
_dbg("Checking for $depEntry->{module} from $depEntry->{source}");

# NOTE Only dependencies of the core or those defined by depFileList
# profile key are considered really required. If a dependency was picked
Expand Down

0 comments on commit 05ba030

Please sign in to comment.