We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37b9e90 commit b716024Copy full SHA for b716024
lib/MetaCPAN/Ingest.pm
@@ -375,10 +375,16 @@ sub read_06perms_fh ( $file = undef ) {
375
return $cpan->child(qw< modules 06perms.txt >)->openr;
376
}
377
378
-sub read_06perms_iter () {
379
- my $cpan = cpan_dir();
380
- my $file_path = $cpan->child(qw< modules 06perms.txt >)->absolute;
381
- my $pp = PAUSE::Permissions->new( path => $file_path );
+sub read_06perms_iter ( $file = undef ) {
+ my $file_path;
+ if ( $file ) {
+ $file_path = path($file)->absolute;
382
+ } else {
383
+ my $cpan = cpan_dir();
384
+ $file_path = $cpan->child(qw< modules 06perms.txt >)->absolute;
385
+ }
386
+
387
+ my $pp = PAUSE::Permissions->new( path => $file_path );
388
return $pp->module_iterator;
389
390
0 commit comments