Skip to content
Snippets Groups Projects
Commit e28b6833 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

download-from-binary-cache: Try next cache if downloading a NAR fails

parent bbc107ef
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment