Author: BINGOS
Date: Thu Apr  8 00:48:51 2010
New Revision: 13897

Modified:
   CPANPLUS-Dist-Build/trunk/Changes
   CPANPLUS-Dist-Build/trunk/t/inc/conf.pl

Log:
Make sure we find cpanp-run-perl in ../../utils when PERL_CORE

Modified: CPANPLUS-Dist-Build/trunk/Changes
==============================================================================
--- CPANPLUS-Dist-Build/trunk/Changes   (original)
+++ CPANPLUS-Dist-Build/trunk/Changes   Thu Apr  8 00:48:51 2010
@@ -2,6 +2,7 @@
 
   - Explicitly set the location of cpanp-run-perl when under PERL_CORE
     in t/inc/conf.pl
+  - Make sure we find cpanp-run-perl in ../../utils when PERL_CORE
 
 0.46 Sat Jan 23 07:52:19 GMT 2010
   - actually make the prereq resolving fallback to _build/ querying

Modified: CPANPLUS-Dist-Build/trunk/t/inc/conf.pl
==============================================================================
--- CPANPLUS-Dist-Build/trunk/t/inc/conf.pl     (original)
+++ CPANPLUS-Dist-Build/trunk/t/inc/conf.pl     Thu Apr  8 00:48:51 2010
@@ -29,11 +29,10 @@
     
     ### add CPANPLUS' bin dir to the front of $ENV{PATH}, so that 
cpanp-run-perl
     ### and friends get picked up, only under PERL_CORE though.
+    $old_env_path = $ENV{PATH};
     if ( $ENV{PERL_CORE} ) {
-       $old_env_path = $ENV{PATH};
        $ENV{'PATH'}  = join $Config{'path_sep'}, 
-                    grep { defined } "$FindBin::Bin/../../CPANPLUS/bin", 
$ENV{'PATH'};
-
+                    grep { defined } "$FindBin::Bin/../../../utils", 
$ENV{'PATH'};
     }
 
     ### Fix up the path to perl, as we're about to chdir

Reply via email to