X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=scripts%2Fdownload.pl;h=bd62b6b9566ce729f78f54e3ea3ea0003c91b52b;hb=00d48bcac08afc5a586c074894f96d9237fbe823;hp=775408934ab25c92b1c988c325c0effd8ff45e50;hpb=b30ba14e2a858cfebcfdbc38348ab96a6d179556;p=openwrt%2Fstaging%2Fdedeckeh.git diff --git a/scripts/download.pl b/scripts/download.pl index 775408934a..bd62b6b956 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -88,7 +88,7 @@ sub download_cmd($) { } my $hash_cmd = hash_cmd(); -$hash_cmd or die "Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.\n"; +$hash_cmd or ($file_hash eq "skip") or die "Cannot find appropriate hash command, ensure the provided hash is either a MD5 or SHA256 checksum.\n"; sub download { @@ -191,7 +191,7 @@ foreach my $mirror (@ARGV) { if ($mirror =~ /^\@SF\/(.+)$/) { # give sourceforge a few more tries, because it redirects to different mirrors for (1 .. 5) { - push @mirrors, "http://downloads.sourceforge.net/$1"; + push @mirrors, "https://downloads.sourceforge.net/$1"; } } elsif ($mirror =~ /^\@APACHE\/(.+)$/) { push @mirrors, "https://mirror.netcologne.de/apache.org/$1"; @@ -257,10 +257,9 @@ foreach my $mirror (@ARGV) { } } -#push @mirrors, 'http://mirror1.openwrt.org'; -push @mirrors, 'http://sources.lede-project.org'; -push @mirrors, 'http://mirror2.openwrt.org/sources'; -push @mirrors, 'http://downloads.openwrt.org/sources'; +#push @mirrors, 'https://mirror1.openwrt.org'; +push @mirrors, 'https://sources.openwrt.org'; +push @mirrors, 'https://mirror2.openwrt.org/sources'; while (!-f "$target/$filename") { my $mirror = shift @mirrors;