X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=scripts%2Fdownload.pl;h=34fd6a6f0b6bff3d1d55aee818e24fc41c6650da;hb=bf0e4cb13fbda9e3bc6732d1f1909c9d88ff39af;hp=775408934ab25c92b1c988c325c0effd8ff45e50;hpb=b30ba14e2a858cfebcfdbc38348ab96a6d179556;p=openwrt%2Fopenwrt.git diff --git a/scripts/download.pl b/scripts/download.pl index 775408934a..34fd6a6f0b 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,10 @@ 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.lede-project.org'; +push @mirrors, 'https://mirror2.openwrt.org/sources'; +push @mirrors, 'https://downloads.openwrt.org/sources'; while (!-f "$target/$filename") { my $mirror = shift @mirrors;