NAME

MyCPAN::Indexer::Queue - Find distributions to index

SYNOPSIS

Use this in backpan_indexer.pl by specifying it as the queue class:

# in backpan_indexer.config
queue_class  MyCPAN::Indexer::Queue

DESCRIPTION

This class returns a list of Perl distributions for the BackPAN indexer to process.

Methods

component_type

This is a queue type.

get_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.

It specifically skips files that end in .txt.gz or .data.gz since PAUSE creates those meta files near the actual module installations.

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.

This queue component tries to skip any distributions that already have a report to make the list of distributions to examine much shorter. It relies on the

report_exists_already( DIST )

This method goes through this process to decide what to return:

Return false if the fresh_start configuration is true (so existing reports don't matter).
Return true if there is a successful report already.
Return false if retry_errors is true.
Return true if there is already an error report.
Return false as the default case.

SEE ALSO

MyCPAN::Indexer, MyCPAN::Indexer::Tutorial

SOURCE AVAILABILITY

This code is in Github:

git://github.com/briandfoy/mycpan-indexer.git

AUTHOR

brian d foy, <bdfoy@cpan.org>

COPYRIGHT AND LICENSE

Copyright (c) 2008-2013, brian d foy, All Rights Reserved.

You may redistribute this under the same terms as Perl itself.