X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2Flocal-lib.git;a=blobdiff_plain;f=Makefile.PL;h=7575db073d46ad9198f3d19eae47d640a4ad3325;hp=2714a0d7f1124b9305d3b310931b1712cccbcc13;hb=9a021b2b54372f72e6c17f3add625c94b2bb5a98;hpb=c4dbb66caaa1ba28bf029d041676b2efb0e401fa diff --git a/Makefile.PL b/Makefile.PL index 2714a0d..7575db0 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -107,8 +107,10 @@ requires 'CPAN' => '1.80'; # sudo support # without this beautiful hack my $no_cpanplus_env = !exists $ENV{PERL5_CPANPLUS_IS_RUNNING}; +my $no_cpan_env = !exists $ENV{PERL5_CPAN_IS_RUNNING}; require CPAN; delete $ENV{PERL5_CPANPLUS_IS_RUNNING} if $no_cpanplus_env; +delete $ENV{PERL5_CPAN_IS_RUNNING} if $no_cpan_env; # and make sure that the user doesn't have any existing CPAN config that'll # cause us problems for the next few steps.