1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 00:14:05 +02:00

real fix for download.pl

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@5018 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2006-10-10 16:17:16 +00:00
parent 65cfd58a27
commit 86a9a13757

View File

@ -19,8 +19,9 @@ my $ok;
@ARGV > 0 or die "Syntax: $0 <target dir> <filename> <md5sum> <mirror> [<mirror> ...]\n";
my $md5cmd = `which md5sum`;
$md5cmd =~ /not found/ and $md5cmd = `which md5`;
$md5cmd =~ /not found/ and die 'no md5 checksum program found, please install md5 or md5sum';
$md5cmd or $md5cmd = `which md5`;
$md5cmd or die 'no md5 checksum program found, please install md5 or md5sum';
chomp $md5cmd;
sub download
{
@ -43,7 +44,6 @@ sub download
cleanup();
return;
}
$? = 0;
my $sum = `cat "$target/$filename.md5sum"`;
$sum =~ /^(\w+)\s*/ or die "Could not generate md5sum\n";