projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d9f6f3
)
download.pl: cope with potential two-digit linux versions
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 3 Jul 2011 15:00:24 +0000
(15:00 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 3 Jul 2011 15:00:24 +0000
(15:00 +0000)
SVN-Revision: 27376
scripts/download.pl
patch
|
blob
|
history
diff --git
a/scripts/download.pl
b/scripts/download.pl
index 50ecfc696659ea63b1974259e03dddfa6b5411d1..08949d698aa49dd375e4dfbc14fb831e27dde61e 100755
(executable)
--- 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) {