download-from-binary-cache: Try next cache if downloading a NAR fails
This commit is contained in:
parent
bbc107ef1e
commit
e28b683324
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ sub downloadBinary {
|
||||||
print STDERR "\n*** Downloading ‘$url’ to ‘$storePath’...\n";
|
print STDERR "\n*** Downloading ‘$url’ to ‘$storePath’...\n";
|
||||||
checkURL $url;
|
checkURL $url;
|
||||||
if (system("$Nix::Config::curl --fail --location --insecure '$url' | $decompressor | $Nix::Config::binDir/nix-store --restore $destPath") != 0) {
|
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;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue