* Put the NAR hash in the filename to prevent problems if Hydra

redoes a derivation.


git-svn-id: https://nixos.org/repos/nix/release/trunk/channels@17852 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
This commit is contained in:
Eelco Dolstra 2009-10-16 11:33:48 +00:00
parent a919ef0a9b
commit 51e53116e9

View file

@ -38,8 +38,10 @@ print "$size store paths in manifest\n";
while (my ($storePath, $files) = each %narFiles) {
foreach my $file (@{$files}) {
my $narHash = $file->{narHash};
my $srcURL = $file->{url};
my $dstName = basename $srcURL;
my $dstName = $narHash;
$dstName =~ s/:/_/; # `:' in filenames might cause problems
my $dstFile = "$dstChannelPath/$dstName";
my $dstURL = "$dstChannelURL/$dstName";