aboutsummaryrefslogtreecommitdiff
path: root/src/nix/add-to-store.cc
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2020-03-29 01:04:55 -0400
committerJohn Ericson <git@JohnEricson.me>2020-03-29 15:16:20 -0400
commit225e62a56a7cebb030bebffb8d2bd7afe21cc64a (patch)
tree4cd7999dab685a09aea40236d631a9c2a43e2a40 /src/nix/add-to-store.cc
parenteb1911e277bfcc1b161cb996205ae1696f496099 (diff)
Replace some `bool recursive` with a new `FileIngestionMethod` enum
Diffstat (limited to 'src/nix/add-to-store.cc')
-rw-r--r--src/nix/add-to-store.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/add-to-store.cc b/src/nix/add-to-store.cc
index 139db3657..e82ab844e 100644
--- a/src/nix/add-to-store.cc
+++ b/src/nix/add-to-store.cc
@@ -42,10 +42,10 @@ struct CmdAddToStore : MixDryRun, StoreCommand
auto narHash = hashString(htSHA256, *sink.s);
- ValidPathInfo info(store->makeFixedOutputPath(true, narHash, *namePart));
+ ValidPathInfo info(store->makeFixedOutputPath(FileIngestionMethod::Recursive, narHash, *namePart));
info.narHash = narHash;
info.narSize = sink.s->size();
- info.ca = makeFixedOutputCA(true, info.narHash);
+ info.ca = makeFixedOutputCA(FileIngestionMethod::Recursive, info.narHash);
if (!dryRun)
store->addToStore(info, sink.s);