MyCPAN::Indexer::Queue::ErrorReports - Try to index distributions with error reports
Use this in backpan_indexer.pl by specifying it as the queue class:
# in backpan_indexer.config queue_class MyCPAN::Indexer::Queue::ErrorReports
This class returns a list of Perl distributions for the BackPAN indexer to process. It selects the distributions that had previous indexing errors by extracting the distribution path from the error report. If the distribution isn't in the same place it was during the original indexing, it won't be in the queue.
get_queue sets the key queue in $Notes hash reference. It finds all of the tarballs or zip archives in under the directories named in backpan_dir and merge_dirs in the configuration.
get_queue
queue
$Notes
backpan_dir
merge_dirs
It specifically skips files that end in .txt.gz or .data.gz since PAUSE creates those meta files near the actual module installations.
.txt.gz
.data.gz
If the organize_dists configuration value is true, it also copies any distributions it finds into a PAUSE-like structure using the value of the pause_id configuration to create the path.
organize_dists
pause_id
MyCPAN::Indexer, MyCPAN::Indexer::Tutorial, MyCPAN::Indexer::Queue
This code is in Github:
git://github.com/briandfoy/mycpan-indexer.git
brian d foy, <bdfoy@cpan.org>
<bdfoy@cpan.org>
Copyright (c) 2008-2013, brian d foy, All Rights Reserved.
You may redistribute this under the same terms as Perl itself.
To install MyCPAN::Indexer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MyCPAN::Indexer
CPAN shell
perl -MCPAN -e shell install MyCPAN::Indexer
For more information on module installation, please visit the detailed CPAN module installation guide.