This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changes to CPANPLUS and CPANPLUS::Dist::Build tests
[perl5.git]
/
cpan
/
CPANPLUS
/
t
/
inc
/
conf.pl
diff --git
a/cpan/CPANPLUS/t/inc/conf.pl
b/cpan/CPANPLUS/t/inc/conf.pl
index
4f6c3d6
..
ca64731
100644
(file)
--- a/
cpan/CPANPLUS/t/inc/conf.pl
+++ b/
cpan/CPANPLUS/t/inc/conf.pl
@@
-30,8
+30,14
@@
BEGIN {
### add our own path to the front of $ENV{PATH}, so that cpanp-run-perl
### and friends get picked up
$old_env_path = $ENV{PATH};
### add our own path to the front of $ENV{PATH}, so that cpanp-run-perl
### and friends get picked up
$old_env_path = $ENV{PATH};
- $ENV{'PATH'} = join $Config{'path_sep'},
+ if ( $ENV{PERL_CORE} ) {
+ $ENV{'PATH'} = join $Config{'path_sep'},
+ grep { defined } "$FindBin::Bin/../../../utils", $ENV{'PATH'};
+ }
+ else {
+ $ENV{'PATH'} = join $Config{'path_sep'},
grep { defined } "$FindBin::Bin/../bin", $ENV{'PATH'};
grep { defined } "$FindBin::Bin/../bin", $ENV{'PATH'};
+ }
### Fix up the path to perl, as we're about to chdir
### but only under perlcore, or if the path contains delimiters,
### Fix up the path to perl, as we're about to chdir
### but only under perlcore, or if the path contains delimiters,