Skip to content

Commit 37b9e90

Browse files
committed
Ingest: read_06perms_fh - supprort alternative file (for testing)
1 parent b0d11d1 commit 37b9e90

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
@@ -368,7 +368,9 @@ sub read_02packages ( $file = undef ) {
368368
}
369369

370370
# TODO: replace usage with unified read_06perms
371-
sub read_06perms_fh () {
371+
sub read_06perms_fh ( $file = undef ) {
372+
return path($file)->openr if $file;
373+
372374
my $cpan = cpan_dir();
373375
return $cpan->child(qw< modules 06perms.txt >)->openr;
374376
}

0 commit comments

Comments
 (0)