summaryrefslogtreecommitdiff
path: root/Porting/core-cpan-diff
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2013-10-21 18:31:34 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2013-10-21 18:31:34 +0100
commit363338367009f8156f4d49f6a24226eaf02db24c (patch)
tree97d1a9aa64d092e1b3da7094bf3766e40bb4827e /Porting/core-cpan-diff
parent72905adc0956f3ad276251c8d98e96acccb89200 (diff)
downloadperl-363338367009f8156f4d49f6a24226eaf02db24c.tar.gz
Porting/Maintainers.pl - Remove redundant EXCLUDED files
Also add extra verbose output to Porting/core-cpan-diff to identify such cases.
Diffstat (limited to 'Porting/core-cpan-diff')
-rw-r--r--Porting/core-cpan-diff18
1 files changed, 18 insertions, 0 deletions
diff --git a/Porting/core-cpan-diff b/Porting/core-cpan-diff
index b3afa30e9f..275394508f 100644
--- a/Porting/core-cpan-diff
+++ b/Porting/core-cpan-diff
@@ -397,6 +397,24 @@ EOF
print $outfh " Perl only: $_\n" unless $use_diff;
}
}
+ if ( $verbose ) {
+ foreach my $exclude (@$excluded) {
+ my $seen = 0;
+ foreach my $cpan_file (@cpan_files) {
+ # may be a simple string to match exactly, or a pattern
+ if ( ref $exclude ) {
+ $seen = 1 if $cpan_file =~ $exclude;
+ }
+ else {
+ $seen = 1 if $cpan_file eq $exclude;
+ }
+ last if $seen;
+ }
+ if ( not $seen ) {
+ print $outfh " Unnecessary exclusion: $exclude\n";
+ }
+ }
+ }
}
}