This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don't list test modules when listing cpan versions
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 1 Sep 2005 14:50:24 +0000 (14:50 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 1 Sep 2005 14:50:24 +0000 (14:50 +0000)
p4raw-id: //depot/perl@25345

Porting/corecpan.pl

index 48fb7d9..1327483 100644 (file)
@@ -47,7 +47,7 @@ for my $dist (sort keys %Modules) {
     next unless $Modules{$dist}{CPAN};
     print "Module $dist...\n";
     for my $file (get_module_files($dist)) {
-       next if $file !~ /\.pm\z/ or $file =~ m{^t/};
+       next if $file !~ /\.pm\z/ or $file =~ m{^t/} or $file =~ m{/t/};
        my $vcore = MM->parse_version($file) // 'undef';
        my $module = $file;
        $module =~ s/\.pm\z//;