sync with trunk
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Tue, 6 Dec 2005 22:49:27 +0000 (22:49 +0000)
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Tue, 6 Dec 2005 22:49:27 +0000 (22:49 +0000)
SVN-Revision: 2583

openwrt/scripts/download.pl

index a59ffe6ba6c285008fe715752da5ec5eda2def99..43dc7965b87e50f219080d8e22f3ad33227e5784 100755 (executable)
@@ -59,7 +59,7 @@ foreach my $mirror (@ARGV) {
                my $sfpath = $1;
                open SF, "wget -t1 -q -O- 'http://prdownloads.sourceforge.net/$sfpath/$filename' |";
                while (<SF>) {
-                       /RADIO NAME=use_default VALUE=(\w+) OnClick="form\.submit\(\)">/ and do {
+                       /type="radio" name="use_default" value="(\w+)" onclick="form\.submit\(\)"\/>/ and do {
                                push @mirrors, "http://$1.dl.sourceforge.net/sourceforge/$sfpath";
                        };
                }
@@ -75,8 +75,8 @@ foreach my $mirror (@ARGV) {
        }
 }
 
-push @mirrors, 'http://mirror1.openwrt.org/';
-push @mirrors, 'http://mirror2.openwrt.org/';
+#push @mirrors, 'http://mirror1.openwrt.org/';
+#push @mirrors, 'http://mirror2.openwrt.org/';
 push @mirrors, 'http://downloads.openwrt.org/sources/';
 
 while (!$ok) {