From: Vincent Pit Date: Wed, 15 Dec 2010 23:01:28 +0000 (+0100) Subject: Set a better default description X-Git-Tag: v0.11~11 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=3cfa63d46dbac245947e64802f9e720e8824a99d;p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git Set a better default description --- diff --git a/lib/CPANPLUS/Dist/Gentoo.pm b/lib/CPANPLUS/Dist/Gentoo.pm index d5a7b79..6115b38 100644 --- a/lib/CPANPLUS/Dist/Gentoo.pm +++ b/lib/CPANPLUS/Dist/Gentoo.pm @@ -359,7 +359,10 @@ sub prepare { return $FAIL->() unless $stat->prepared; my $desc = $mod->description; - ($desc = $name) =~ s/-+/::/g unless $desc; + $desc = $mod->comment unless $desc; + $desc = "$name Perl distribution (provides " . $mod->module . ')' + unless $desc; + $desc = substr($desc, 0, 77) . '...' if length $desc > 80; $stat->desc($desc); $stat->uri('http://search.cpan.org/dist/' . $name);