From: Vincent Pit Date: Sat, 29 Nov 2008 19:00:35 +0000 (+0100) Subject: The overlay shouldn't hold the category X-Git-Tag: v0.03~3 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=73d867f4a7ed6585f445e879617dc574491b8a81;p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git The overlay shouldn't hold the category --- diff --git a/lib/CPANPLUS/Dist/Gentoo.pm b/lib/CPANPLUS/Dist/Gentoo.pm index 15424d3..6c47c6e 100644 --- a/lib/CPANPLUS/Dist/Gentoo.pm +++ b/lib/CPANPLUS/Dist/Gentoo.pm @@ -107,9 +107,7 @@ sub prepare { $manifest = 0 if $manifest =~ /^\s*no?\s*$/i; $stat->do_manifest($manifest); - my $overlay = catdir(delete($opts{'overlay'}) || '/usr/local/portage', - CATEGORY); - $stat->overlay($overlay); + $stat->overlay(delete($opts{'overlay'}) || '/usr/local/portage'); $stat->distdir(delete($opts{'distdir'}) || '/usr/portage/distfiles'); @@ -134,7 +132,7 @@ sub prepare { $stat->eb_name($gentooism{$name} || $name); - $stat->eb_dir(catdir($overlay, $stat->eb_name)); + $stat->eb_dir(catdir($stat->overlay, CATEGORY, $stat->eb_name)); my $file = catfile($stat->eb_dir, $stat->eb_name . '-' . $stat->eb_version . '.ebuild');