From: Vincent Pit Date: Fri, 12 Dec 2008 20:53:15 +0000 (+0100) Subject: Set $stat->created properly in create() X-Git-Tag: v0.05~22 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git;a=commitdiff_plain;h=4f153029fbbb747ae15a78250aef1cd3970c6994 Set $stat->created properly in create() --- diff --git a/lib/CPANPLUS/Dist/Gentoo.pm b/lib/CPANPLUS/Dist/Gentoo.pm index be152cf..79fb7b8 100644 --- a/lib/CPANPLUS/Dist/Gentoo.pm +++ b/lib/CPANPLUS/Dist/Gentoo.pm @@ -245,6 +245,7 @@ sub create { unless ($stat->prepared) { error 'Can\'t create ' . $stat->dist . ' since it was never prepared -- aborting'; + $stat->created(0); return 0; } @@ -253,6 +254,8 @@ sub create { return 1; } + $stat->created(0); + $self->SUPER::create(@_); my $dir = $stat->eb_dir; @@ -314,6 +317,7 @@ sub create { } } + $stat->created(1); return 1; }