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~