Skip Menu |

This queue is for tickets about the Parse-CPAN-Packages CPAN distribution.

Report information
The Basics
Id: 39169
Status: resolved
Priority: 0/
Queue: Parse-CPAN-Packages

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: Get CPAN.pm's 02packages.details.txt.gz
It is likely that the user already has a 02packages.details.txt.gz file available through CPAN.pm. The patch documents how to get this file to be used by Parse::CPAN::Packages. Regards, Slaven
Subject: Parse-CPAN-Packages-CPAN.pm.patch
diff -ur Parse-CPAN-Packages-2.29-XthAn6/lib/Parse/CPAN/Packages.pm new.Parse-CPAN-Packages-2.29-XthAn6/lib/Parse/CPAN/Packages.pm --- Parse-CPAN-Packages-2.29-XthAn6/lib/Parse/CPAN/Packages.pm Tue Aug 19 20:42:46 2008 +++ new.Parse-CPAN-Packages-2.29-XthAn6/lib/Parse/CPAN/Packages.pm Wed Sep 10 22:55:34 2008 @@ -301,6 +301,15 @@ my $data = get("http://www.cpan.org/modules/02packages.details.txt.gz"); my $p = Parse::CPAN::Packages->new($data); +If you have a configured L<CPAN>, then there's usually already a +cached file available: + + use CPAN; + $CPAN::Be_Silent = 1; + CPAN::HandleConfig->load; + my $file = $CPAN::Config->{keep_source_where} . "/modules/02packages.details.txt.gz"; + my $p = Parse::CPAN::Packages->new($file); + =item package($packagename) Returns a C<Parse::CPAN::Packages::Package> that represents the Only in new.Parse-CPAN-Packages-2.29-XthAn6/lib/Parse/CPAN: Packages.pm~
This will be in the next release. Thanks. :)