diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-11-06T16·55+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-11-06T16·55+0100 |
commit | e28b683324388f33b89ee40d7a7e25dcd8f98109 (patch) | |
tree | 77c6696476ac77f9be563035b896cbaa3b40fe5f | |
parent | bbc107ef1e850d73dbe9a21c567b34f5939570c6 (diff) |
download-from-binary-cache: Try next cache if downloading a NAR fails
-rw-r--r-- | scripts/download-from-binary-cache.pl.in | 2 |
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; } |