On Fri, Feb 1, 2013 at 2:07 AM, Andreas Koenig
<[email protected]> wrote:
>
> I fear this is a misleading sentence, because fact is only that the
> PREREQUISITES section of the report is too short. Normally
> CPAN::Reporter tells us more about installed prerequisites. From this
> fact we cannot make generalized assumptions about Nigel's installation.

Something is going wrong either in CPAN.pm detection of prereqs or in
the report generation (or both).  Relevant CPAN::Reporter code shows
that it's calling prereq_pm on the CPAN::Distribution object.

    # Extract requires/build_requires from CPAN dist
    my $prereq_pm = $dist->prereq_pm;
    if ( ref $prereq_pm eq 'HASH' ) {
        # is it the new CPAN style with requires/build_requires?
        if (join(q{ }, sort keys %$prereq_pm) eq "build_requires requires") {
            $need{requires} = $prereq_pm->{requires}
                if  ref $prereq_pm->{requires} eq 'HASH';
            $need{build_requires} = $prereq_pm->{build_requires}
                if ref $prereq_pm->{build_requires} eq 'HASH';
        }
        else {
            $need{requires} = $prereq_pm;
        }
    }

I suggest Nigel should disable CPAN::Reporter (o conf test_report 0)
and try it manually and see what happens.

David

-- 
David Golden <[email protected]>
Take back your inbox! → http://www.bunchmail.com/
Twitter/IRC: @xdg

Reply via email to