1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 17:51:15 +02:00

Fix repair during substitution

This commit is contained in:
Eelco Dolstra 2016-05-12 15:42:19 +02:00
parent 3be2e71ab3
commit b66ab6cdbc
3 changed files with 5 additions and 4 deletions

View file

@ -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);
}