From e28b683324388f33b89ee40d7a7e25dcd8f98109 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 6 Nov 2012 17:55:53 +0100 Subject: [PATCH] download-from-binary-cache: Try next cache if downloading a NAR fails --- scripts/download-from-binary-cache.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/download-from-binary-cache.pl.in b/scripts/download-from-binary-cache.pl.in index a19f863d25..20d60e06e6 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; }