ramips: update partition map for DIR-300-B1
[openwrt.git] / 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 );
                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";
                        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) {
                        push @extra, "$extra[0]/longterm/v$1";
                }               
                foreach my $dir (@extra) {
This page took 0.025558 seconds and 4 git commands to generate.