[scripts] download.pl: cope with potential two-digit linux versions
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 3 Jul 2011 15:00:24 +0000 (15:00 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 3 Jul 2011 15:00:24 +0000 (15:00 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27376 3c298f89-4303-0410-b956-a3cf2f4a3e73

scripts/download.pl

index 50ecfc6..08949d6 100755 (executable)
@@ -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) {
This page took 0.029874 seconds and 4 git commands to generate.