mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
download-from-binary-cache: Try next cache if downloading a NAR fails
This commit is contained in:
parent
bbc107ef1e
commit
e28b683324
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user