teach CPAN.pm to ignore beta perl distributions when looking for
root [Thu, 12 Nov 1998 23:08:39 +0000 (18:08 -0500)]
modules
Message-Id: <199811130408.XAA10578@dogberry.rutgers.edu>
Subject: recompile tries getting a perl distribution

p4raw-id: //depot/perl@2336

lib/CPAN.pm

index 3c94cd9..ca80b9c 100644 (file)
@@ -1185,7 +1185,7 @@ index    re-reads the index files
 sub _binary_extensions {
     my($self) = shift @_;
     my(@result,$module,%seen,%need,$headerdone);
-    my $isaperl = q{perl5[._-]\\d{3}(_[0-4][0-9])?\\.tar[._-]gz$};
+    my $isaperl = q{perl5[._-]\\d{3}(?:(?:_[0-4][0-9])|(?:-beta\\d?))?\\.tar[._-]gz$};
     for $module ($self->expand('Module','/./')) {
        my $file  = $module->cpan_file;
        next if $file eq "N/A";