]> git.vpit.fr Git - perl/modules/CPANPLUS-Dist-Gentoo.git/commitdiff
The overlay shouldn't hold the category
authorVincent Pit <vince@profvince.com>
Sat, 29 Nov 2008 19:00:35 +0000 (20:00 +0100)
committerVincent Pit <vince@profvince.com>
Sat, 29 Nov 2008 19:00:35 +0000 (20:00 +0100)
lib/CPANPLUS/Dist/Gentoo.pm

index 15424d3e52edf980e3ee72048370c3dbd3ed92c5..6c47c6ef2c1ccc10339f639fa6a95b2754f37c33 100644 (file)
@@ -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');