Skip to content
Snippets Groups Projects
Commit 0649dfdf authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

download.pl: cope with potential two-digit linux versions

SVN-Revision: 27376
parent 3d9f6f3d
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment