forked from lix-project/lix
Make sure info.ca tag bit is set in nix add-to-store
This commit is contained in:
parent
53bc8ff152
commit
574d5460f0
1 changed files with 2 additions and 2 deletions
|
@ -48,10 +48,10 @@ struct CmdAddToStore : MixDryRun, StoreCommand
|
||||||
ValidPathInfo info(store->makeFixedOutputPath(FileIngestionMethod::Recursive, narHash, *namePart));
|
ValidPathInfo info(store->makeFixedOutputPath(FileIngestionMethod::Recursive, narHash, *namePart));
|
||||||
info.narHash = narHash;
|
info.narHash = narHash;
|
||||||
info.narSize = sink.s->size();
|
info.narSize = sink.s->size();
|
||||||
*info.ca = FileSystemHash {
|
info.ca = std::optional { FileSystemHash {
|
||||||
FileIngestionMethod::Recursive,
|
FileIngestionMethod::Recursive,
|
||||||
info.narHash,
|
info.narHash,
|
||||||
};
|
} };
|
||||||
|
|
||||||
if (!dryRun) {
|
if (!dryRun) {
|
||||||
auto source = StringSource { *sink.s };
|
auto source = StringSource { *sink.s };
|
||||||
|
|
Loading…
Reference in a new issue