Skip Menu |

This queue is for tickets about the cpan2rpm CPAN distribution.

Report information
The Basics
Id: 2062
Status: new
Priority: 0/
Queue: cpan2rpm

People
Owner: bbb [...] cpan.org
Requestors: bbb [...] cpan.org
Cc: ecalder [...] cpan.org
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: search.cpan.org
It would be nice to grab the write distribution when you just supply a module within that distribution but it doesn't match exactly with the distribution name. The first match on a Modules search almost always gets the corresponding distribution. Example: cpan2rpm HTTP::Request -> libwww-perl cpan2rpm Net::SSLeay -> Net_SSLeay.pm cpan2rpm Pod::Man -> podlators cpan2rpm Pod::Parser -> PodParser I think an algorithm someting like this may work: http://search.cpan.org/search?query=$module&mode=module m@<a\s+href="([^<>]+/)">@ # The first link that ends with / # will always provide the distribution link # instead of /dist/$module/
From: bbb [...] cpan.org
Here's a really tough one: cpan2rpm Test::More -> Test-Simple Not sure how to do the fussy logic on this beast.
this kind of work is what CPAN does. I'm not sure we should spend time reinventing the wheel here... perhaps we should consider working on CPAN.pm or its successor.