forked from the-distro/channel-scripts
* 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:
parent
a919ef0a9b
commit
51e53116e9
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue