|
@@ -272,11 +272,11 @@ if (-f "$target/$filename") {
|
|
$sum =~ /^(\w+)\s*/ or die "Could not generate file hash\n";
|
|
$sum =~ /^(\w+)\s*/ or die "Could not generate file hash\n";
|
|
$sum = $1;
|
|
$sum = $1;
|
|
|
|
|
|
|
|
+ cleanup();
|
|
exit 0 if $sum eq $file_hash;
|
|
exit 0 if $sum eq $file_hash;
|
|
|
|
|
|
die "Hash of the local file $filename does not match (file: $sum, requested: $file_hash) - deleting download.\n";
|
|
die "Hash of the local file $filename does not match (file: $sum, requested: $file_hash) - deleting download.\n";
|
|
unlink "$target/$filename";
|
|
unlink "$target/$filename";
|
|
- cleanup();
|
|
|
|
};
|
|
};
|
|
}
|
|
}
|
|
|
|
|