aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-07-03 15:00:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-07-03 15:00:24 +0000
commit32523a2688caecc436ace7c49862f4799c52a1c8 (patch)
tree4716899bca5660f7c6d45f5820790620b8c85356 /scripts
parent61d033b383cbbd080fb03b76ecef4452dba7eca1 (diff)
downloadmaster-187ad058-32523a2688caecc436ace7c49862f4799c52a1c8.tar.gz
master-187ad058-32523a2688caecc436ace7c49862f4799c52a1c8.tar.bz2
master-187ad058-32523a2688caecc436ace7c49862f4799c52a1c8.zip
[scripts] download.pl: cope with potential two-digit linux versions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27376 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/download.pl4
1 files changed, 2 insertions, 2 deletions
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) {