about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-06T16·55+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-06T16·55+0100
commite28b683324388f33b89ee40d7a7e25dcd8f98109 (patch)
tree77c6696476ac77f9be563035b896cbaa3b40fe5f
parentbbc107ef1e850d73dbe9a21c567b34f5939570c6 (diff)
download-from-binary-cache: Try next cache if downloading a NAR fails
-rw-r--r--scripts/download-from-binary-cache.pl.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/download-from-binary-cache.pl.in b/scripts/download-from-binary-cache.pl.in
index a19f863d257d..20d60e06e63e 100644
--- a/scripts/download-from-binary-cache.pl.in
+++ b/scripts/download-from-binary-cache.pl.in
@@ -492,7 +492,7 @@ sub downloadBinary {
         print STDERR "\n*** Downloading ‘$url’ to ‘$storePath’...\n";
         checkURL $url;
         if (system("$Nix::Config::curl --fail --location --insecure '$url' | $decompressor | $Nix::Config::binDir/nix-store --restore $destPath") != 0) {
-            die "download of `$info->{url}' failed" . ($! ? ": $!" : "") . "\n" unless $? == 0;
+            warn "download of `$url' failed" . ($! ? ": $!" : "") . "\n";
             next;
         }