From: Jo-Philipp Wich Date: Sun, 3 Jul 2011 15:00:24 +0000 (+0000) Subject: download.pl: cope with potential two-digit linux versions X-Git-Tag: reboot~16407 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0649dfdfb60e2667f21f647d2c4b640f9be3d8f6;p=oweals%2Fopenwrt.git download.pl: cope with potential two-digit linux versions SVN-Revision: 27376 --- diff --git a/scripts/download.pl b/scripts/download.pl index 50ecfc6966..08949d698a 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) {