git-svn-id: https://nixos.org/repos/nix/release/trunk/channels@22778 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb

This commit is contained in:
Eelco Dolstra 2010-07-28 08:25:22 +00:00
parent a621b5cf87
commit 4deaf50ae6

View file

@ -63,7 +63,7 @@ while (my ($storePath, $files) = each %narFiles) {
if (! -e $dstFile) {
print "downloading $srcURL\n";
my $dstFileTmp = "$narPath/.tmp.$$.nar.$dstName";
system("$curl '$srcURL' > $dstFileTmp") == 0 or next;
system("$curl '$srcURL' > $dstFileTmp") == 0 or die "failed to download `$srcURL'";
rename($dstFileTmp, $dstFile) or die "cannot rename $dstFileTmp";
}