Skip to content

Commit

Permalink
allow cpanm options to be set via PERL_CARTON_CPANM_OPT
Browse files Browse the repository at this point in the history
  • Loading branch information
slobo committed Jun 11, 2015
1 parent 1c484f0 commit 64faf28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Carton/Builder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ sub _build_fatscript {

sub run_cpanm {
my($self, @args) = @_;
local $ENV{PERL_CPANM_OPT};
# allow cpanm options to be set via PERL_CARTON_CPANM_OPT
local $ENV{PERL_CPANM_OPT} = $ENV{PERL_CARTON_CPANM_OPT};
!system $^X, $self->fatscript, "--quiet", "--notest", @args;
}

Expand Down

0 comments on commit 64faf28

Please sign in to comment.