]> git.vpit.fr Git - perl/modules/CPANPLUS-Dist-Gentoo.git/commitdiff
Initialize $stat->eb_file before testing if the ebuild already exists, as we may...
authorVincent Pit <vince@profvince.com>
Sat, 20 Dec 2008 16:25:57 +0000 (17:25 +0100)
committerVincent Pit <vince@profvince.com>
Sat, 20 Dec 2008 16:25:57 +0000 (17:25 +0100)
lib/CPANPLUS/Dist/Gentoo.pm

index 2cd8ddf2c32894656bf92ca2b452ee6b10d9296c..e0e6bb883e3849518370bae988ffe8ab6355a81c 100644 (file)
@@ -266,6 +266,8 @@ sub prepare {
 
  my $file = catfile($stat->eb_dir,
                     $stat->eb_name . '-' . $stat->eb_version . '.ebuild');
+ $stat->eb_file($file);
+
  if (-e $file) {
   my $skip = 1;
   if ($stat->force) {
@@ -285,7 +287,6 @@ sub prepare {
    return 1;
   }
  }
- $stat->eb_file($file);
 
  $self->SUPER::prepare(%opts);