aboutsummaryrefslogtreecommitdiff
path: root/scripts/download-using-manifests.pl.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-03-25 14:30:01 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-03-25 14:30:01 +0000
commitebe342c9c14a06bdc90096847529e744265fae3a (patch)
treec6c445486a1d8b23f24d3216eb4249e4263e4ab5 /scripts/download-using-manifests.pl.in
parent7eaf0387639b3108f2351c513801b0d4e0b18be4 (diff)
* Better error checking.
Diffstat (limited to 'scripts/download-using-manifests.pl.in')
-rw-r--r--scripts/download-using-manifests.pl.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/download-using-manifests.pl.in b/scripts/download-using-manifests.pl.in
index 4dbc2396f..ed3290c18 100644
--- a/scripts/download-using-manifests.pl.in
+++ b/scripts/download-using-manifests.pl.in
@@ -194,6 +194,7 @@ sub downloadFile {
$ENV{"QUIET"} = 1;
$ENV{"NIX_HASH_ALGO"} = $hashAlgo;
my ($hash2, $path) = `@bindir@/nix-prefetch-url '$url' '$hash'`;
+ die "download of `$url' failed" unless $? == 0;
chomp $hash2;
chomp $path;
die "hash mismatch, expected $hash, got $hash2" if $hash ne $hash2;