Skip to content

Commit 97d9e3e

Browse files
authored
Merge pull request #17 from samueldr/sha256sum-check
Adds filename to sha256 file for use with `sha256 -c`
2 parents 9f96e1e + 2181f3c commit 97d9e3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mirror-nixos-branch.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ sub fetch {
108108

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

0 commit comments

Comments
 (0)