@@ -422,7 +422,9 @@ sub mail_summary {
422
422
" The following report has been written by the PAUSE namespace indexer.\n " ,
423
423
" Please contact modules\@ perl.org if there are any open questions.\n " ;
424
424
425
- if ($self -> has_indexing_warnings($ctx )) {
425
+ if ($ctx -> warnings_for_all_packages) {
426
+ # If there were any warnings, put in a note to the reader that they should
427
+ # look for them.
426
428
push @m ,
427
429
" \n WARNING: Some irregularities were found while indexing your\n " ,
428
430
" distribution. See below for more details.\n " ;
@@ -567,19 +569,6 @@ sub index_status {
567
569
};
568
570
}
569
571
570
- sub indexing_warnings_for_package {
571
- my ($self , $ctx , $pack ) = @_ ;
572
- return @{ $self -> {INDEX_WARNINGS }{$pack } // [] };
573
- }
574
-
575
- sub has_indexing_warnings {
576
- my ($self , $ctx ) = @_ ;
577
- my $i ;
578
- my $warnings = $self -> {INDEX_WARNINGS };
579
-
580
- @$_ && return 1 for values %$warnings ;
581
- }
582
-
583
572
sub check_blib {
584
573
my ($self , $ctx ) = @_ ;
585
574
if (grep m | ^[^/] +/blib/| , @{$self -> {MANIFOUND }}) {
@@ -1275,12 +1264,6 @@ Accessor method. True if perl distro from non-pumpking or a dev release.
1275
1264
1276
1265
=head3 index_status
1277
1266
1278
- =head3 add_indexing_warning
1279
-
1280
- =head3 indexing_warnings_for_package
1281
-
1282
- =head3 has_indexing_warnings
1283
-
1284
1267
=head3 _package_governing_permission
1285
1268
1286
1269
The package used to determine whether the uploader may upload this distro.
0 commit comments