diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/download.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/download.pl b/scripts/download.pl index 50ecfc696..08949d698 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -136,9 +136,9 @@ foreach my $mirror (@ARGV) { push @mirrors, "ftp://ftp.digex.net/pub/gnu/$1"; } elsif ($mirror =~ /^\@KERNEL\/(.+)$/) { my @extra = ( $1 ); - if ($filename =~ /linux-\d+\.\d+\.\d+-rc/) { + if ($filename =~ /linux-\d+\.\d+(?:\.\d+)?-rc/) { push @extra, "$extra[0]/testing"; - } elsif ($filename =~ /linux-(\d+\.\d+\.\d+)/) { + } elsif ($filename =~ /linux-(\d+\.\d+(?:\.\d+)?)/) { push @extra, "$extra[0]/longterm/v$1"; } foreach my $dir (@extra) { |