Subject: | PAR::Dist::FromCPAN bug? |
Date: | Thu, 24 May 2007 15:21:51 -0400 |
To: | bug-par-dist-fromcpan [...] rt.cpan.org |
From: | Abram Thielke <abram [...] arin.net> |
Message body not shown because it is not plain text.
Hello,
I believe there is a small issue with the way PAR::Dist::FromCPAN builds the
module dependency list. In the cpan_to_par function, in the recursive
dependency solving loop, you're doing a map from the keys of the hash
reference that is created by a $mod->distribution->prereq_pm above. It looks
like you are expecting that hash to have something along the lines of Module
=> Version. However CPAN::Distribution::prereq_pm is returning a hash ref
containing the keys 'requires' and 'build_requires'. Those are hash
references containing Module => Version.
I'm running CPAN 1.9102.
The file attached is a quick patch to address this issue.
Thanks,
Abram Thielke
Message body is not shown because sender requested not to inline it.