default => sub { '/' },
);
+sub _log { shift; printf "[%s] %s\n", scalar(localtime), join '', @_ }
+
sub gather {
my ($self) = @_;
return transform_exceptions {
my %libdir;
while (defined( my $line = <$pipe> )) {
chomp $line;
+ $self->_log("Got $line from the libdirs pipe");
$libdir{ $line } = transform_exceptions {
return { modules => $self->_gather_libdir_info($line) };
};
my $pipe = $self->_open_locate_pm_pipe($libdir);
while (defined( my $line = <$pipe> )) {
chomp $line;
+ $self->_log("Got $line from the locate pipe");
my $metadata = Module::Metadata->new_from_file($line);
next unless $metadata->name;
my $sha = Digest::SHA->new(256);