Skip to content

Commit

Permalink
Merge pull request NixOS#17 from samueldr/sha256sum-check
Browse files Browse the repository at this point in the history
Adds filename to sha256 file for use with `sha256 -c`
  • Loading branch information
edolstra authored Jun 13, 2018
2 parents 9f96e1e + 2181f3c commit 97d9e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mirror-nixos-branch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ sub fetch {

if (! -e $dstFile) {
print STDERR "downloading $srcFile to $dstFile...\n";
write_file("$dstFile.sha256", $sha256_expected);
write_file("$dstFile.sha256", "$sha256_expected $dstName");
system("NIX_REMOTE=https://cache.nixos.org/ nix cat-store '$srcFile' > '$dstFile.tmp'") == 0
or die "unable to fetch $srcFile\n";
rename("$dstFile.tmp", $dstFile) or die;
Expand Down

0 comments on commit 97d9e3e

Please sign in to comment.