From: Robin Barker Date: Thu, 15 Apr 2010 20:14:23 +0000 (+0100) Subject: Make abstract_from more robust X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=460fdedb7c436afaa24f04e2b7b35efbf4418573;p=p5sagit%2Fp5-mst-13.2.git Make abstract_from more robust A few distributions in the perl source failure for abstract_from Rather than fix the individual files I have made the parsing process more robust. --- diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm index 239d6df..564d321 100644 --- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm +++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm @@ -2593,7 +2593,7 @@ sub parse_abstract { $inpod = /^=(?!cut)/ ? 1 : /^=cut/ ? 0 : $inpod; next if !$inpod; chop; - next unless /^($package\s-\s)(.*)/; + next unless /^($package(?:\.pm)?\s+\-+\s+)(.*)/; $result = $2; last; }