projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
busybox: Fix build on OSX/BSD (fix needs to be cleaned up.)
[openwrt.git]
/
scripts
/
download.pl
diff --git
a/scripts/download.pl
b/scripts/download.pl
index
66eaca8
..
806ee80
100755
(executable)
--- a/
scripts/download.pl
+++ b/
scripts/download.pl
@@
-10,16
+10,15
@@
use strict;
use warnings;
use File::Basename;
use warnings;
use File::Basename;
+@ARGV > 2 or die "Syntax: $0 <target dir> <filename> <md5sum> [<mirror> ...]\n";
+
my $target = shift @ARGV;
my $filename = shift @ARGV;
my $md5sum = shift @ARGV;
my $scriptdir = dirname($0);
my @mirrors;
my $target = shift @ARGV;
my $filename = shift @ARGV;
my $md5sum = shift @ARGV;
my $scriptdir = dirname($0);
my @mirrors;
-
my $ok;
my $ok;
-@ARGV > 0 or die "Syntax: $0 <target dir> <filename> <md5sum> <mirror> [<mirror> ...]\n";
-
sub localmirrors {
my @mlist;
open LM, "$scriptdir/localmirrors" and do {
sub localmirrors {
my @mlist;
open LM, "$scriptdir/localmirrors" and do {
@@
-87,7
+86,7
@@
sub download
$sum = $1;
if (($md5sum =~ /\w{32}/) and ($sum ne $md5sum)) {
$sum = $1;
if (($md5sum =~ /\w{32}/) and ($sum ne $md5sum)) {
- print STDERR "MD5 sum of the downloaded file does not match - deleting download.\n";
+ print STDERR "MD5 sum of the downloaded file does not match
(file: $sum, requested: $md5sum)
- deleting download.\n";
cleanup();
return;
}
cleanup();
return;
}
This page took
0.022736 seconds
and
4
git commands to generate.