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:
parent
3be2e71ab3
commit
b66ab6cdbc
3 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue