From: Vincent Pit Date: Wed, 7 Jan 2009 16:26:10 +0000 (+0100) Subject: Make $stat->portdir_overlay an array reference X-Git-Tag: v0.05~5 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=037d26d9eaf3e61639651a8903524e9644f9d067;p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git Make $stat->portdir_overlay an array reference --- diff --git a/lib/CPANPLUS/Dist/Gentoo.pm b/lib/CPANPLUS/Dist/Gentoo.pm index 3dff39c..8e1809c 100644 --- a/lib/CPANPLUS/Dist/Gentoo.pm +++ b/lib/CPANPLUS/Dist/Gentoo.pm @@ -250,12 +250,11 @@ sub prepare { my $portdir_overlay; for (@$overlays) { if ($_ eq $overlay or File::Spec::Functions::abs2rel($overlay, $_) eq $cur) { - $portdir_overlay = join ' ', @$overlays; + $portdir_overlay = [ @$overlays ]; last; } } - $portdir_overlay = join ' ', @$overlays, $overlay - unless defined $portdir_overlay; + $portdir_overlay = [ @$overlays, $overlay ] unless $portdir_overlay; $stat->portdir_overlay($portdir_overlay); my $name = $mod->package_name; @@ -470,7 +469,7 @@ sub _run { my $stat = $self->status; my ($success, $errmsg, $output) = do { - local $ENV{PORTDIR_OVERLAY} = $stat->portdir_overlay; + local $ENV{PORTDIR_OVERLAY} = join ' ', @{$stat->portdir_overlay}; local $ENV{PORTAGE_RO_DISTDIRS} = $stat->distdir; run command => $cmd, verbose => $verbose; };