diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-25T17·08+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-25T17·08+0000 |
commit | 066da4ab852ebe4288536149824ea175dc36cad4 (patch) | |
tree | d9258a2d224a0574c0135cd799cb704fc8c25433 /scripts/download-using-manifests.pl.in | |
parent | c6290e42bc8890e2036013773a98e3551352c91a (diff) |
* Really fix the substitute mechanism, i.e., ensure the closure
invariant by registering references through the manifest. * Added a test for nix-pull.
Diffstat (limited to 'scripts/download-using-manifests.pl.in')
-rw-r--r-- | scripts/download-using-manifests.pl.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/download-using-manifests.pl.in b/scripts/download-using-manifests.pl.in index 5d4193590b75..5698f49ae4aa 100644 --- a/scripts/download-using-manifests.pl.in +++ b/scripts/download-using-manifests.pl.in @@ -13,7 +13,7 @@ open LOGFILE, ">>$logFile" or die "cannot open log file $logFile"; die unless scalar @ARGV == 1; my $targetPath = $ARGV[0]; -my $date = `date`; +my $date = `date` or die; chomp $date; print LOGFILE "$$ get $targetPath $date\n"; @@ -180,7 +180,7 @@ sub downloadFile { my ($hash2, $path) = `@bindir@/nix-prefetch-url '$url' '$hash'`; chomp $hash2; chomp $path; - die "hash mismatch" if $hash ne $hash2; + die "hash mismatch, expected $hash, got $hash2" if $hash ne $hash2; return $path; } @@ -236,7 +236,7 @@ while (scalar @path > 0) { # Unpack the archive into the target path. print " unpacking archive...\n"; - system "@bunzip2@ < '$narFilePath' | nix-store --restore '$v'"; + system "@bunzip2@ < '$narFilePath' | @bindir@/nix-store --restore '$v'"; die "cannot unpack `$narFilePath' into `$v'" if ($? != 0); } } |