diff options
author | Slobodan Mišković <slobodan@miskovic.ca> | 2015-06-11 00:19:04 -0700 |
---|---|---|
committer | Slobodan Mišković <slobodan@miskovic.ca> | 2015-06-11 00:19:04 -0700 |
commit | 64faf28ed61a6d0278c87831c83258cf8ecc40a9 (patch) | |
tree | 5291bb19c045e8bfd65bad633f4a96939608c3a5 | |
parent | 1c484f0f1a664b1878aabd3e4528e1b521317536 (diff) | |
download | carton-baserock/richardipsum/allow-set-perl-carton-cpanm-opt.tar.gz |
allow cpanm options to be set via PERL_CARTON_CPANM_OPTbaserock/v1.0.21baserock/richardipsum/allow-set-perl-carton-cpanm-opt
-rw-r--r-- | lib/Carton/Builder.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Carton/Builder.pm b/lib/Carton/Builder.pm index de456d7..7eb43be 100644 --- a/lib/Carton/Builder.pm +++ b/lib/Carton/Builder.pm @@ -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; } |