diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-12T13·42+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-30T13·18+0200 |
commit | b66ab6cdbce5f4ac2db8976872547680242166e8 (patch) | |
tree | d18eeea5ee95602bf3fe252ee97708f0899e1610 /src/libstore/store-api.cc | |
parent | 3be2e71ab31200e3d263d6d2aeb4bf85462156a0 (diff) |
Fix repair during substitution
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r-- | src/libstore/store-api.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 8600def627fa..f39d6b54787c 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -358,14 +358,14 @@ const Store::Stats & Store::getStats() void copyStorePath(ref<Store> srcStore, ref<Store> dstStore, - const Path & storePath) + const Path & storePath, bool repair) { auto info = srcStore->queryPathInfo(storePath); StringSink sink; srcStore->narFromPath({storePath}, sink); - dstStore->addToStore(*info, *sink.s); + dstStore->addToStore(*info, *sink.s, repair); } |