Skip to content

Commit 58269c4

Browse files
committed
Don't die on missing find-ls.gz (for tests)
1 parent 48d1209 commit 58269c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/MetaCPAN/Ingest.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,11 @@ sub read_url ( $url ) {
250250

251251
sub cpan_file_map () {
252252
my $cpan = cpan_dir();
253+
253254
my $ls = $cpan->child(qw< indices find-ls.gz >);
254255
if ( !-e $ls ) {
255-
die "File $ls does not exist";
256+
warn "File $ls does not exist";
257+
return {};
256258
}
257259

258260
log_info {"Reading $ls"};

0 commit comments

Comments
 (0)