MyCPAN-Indexer
view release on metacpan or search on metacpan
lib/MyCPAN/App/BackPAN/Indexer.pm view on Meta::CPAN
-c Print the config and exit
=cut
sub process_options {
my( $application ) = @_;
my $run_dir = dirname( $0 );
( my $script = basename( $0 ) ) =~ s/\.\w+$//;
local @ARGV = @{ $application->{args} };
getopts( 'cl:f:', \ my %Options );
# other things might want to use things from @ARGV, and
# we just removed the bits that we wanted.
$application->{args} = [ @ARGV ]; # XXX: yuck
$Options{f} ||= catfile( $run_dir, "$script.conf" );
#$Options{l} ||= catfile( $run_dir, "$script.log4perl" );
lib/MyCPAN/Indexer/Queue/FromList.pm view on Meta::CPAN
sub _get_file_list
{
my( $self ) = @_;
my $file = $self->get_config->distribution_list;
$logger->debug( "Taking dists from [$file]" );
$logger->error( "Distribution file [$file] does not exist" )
unless -e $file;
chomp( my @files = do { local( @ARGV ) = $file; <> } );
$logger->debug( "Found " . @files . " error reports" );
my @queue;
foreach my $file ( @files )
{
$logger->debug( "Looking for distribution [$file]" );
if( -e $file )
{
push @queue, $file;
}
( run in 0.854 second using v1.01-cache-2.11-cpan-49f99fa48dc )