diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-07-03 15:00:24 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-07-03 15:00:24 +0000 |
commit | 0649dfdfb60e2667f21f647d2c4b640f9be3d8f6 (patch) | |
tree | 69491f3c816d68db152bc7233f9cc268ee139a16 /scripts | |
parent | 3d9f6f3d3536a14458009d1954460c824853743e (diff) | |
download | mtk-20170518-0649dfdfb60e2667f21f647d2c4b640f9be3d8f6.zip mtk-20170518-0649dfdfb60e2667f21f647d2c4b640f9be3d8f6.tar.gz mtk-20170518-0649dfdfb60e2667f21f647d2c4b640f9be3d8f6.tar.bz2 |
download.pl: cope with potential two-digit linux versions
SVN-Revision: 27376
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 50ecfc6..08949d6 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) { |