Make sure srcStore has path before coppying

This commit is contained in:
John Ericson 2020-09-09 17:35:54 +00:00
parent 6a0e0db349
commit 6c7b81047f

View file

@ -847,6 +847,7 @@ std::map<StorePath, StorePath> copyPaths(ref<Store> srcStore, ref<Store> dstStor
return i.second == storePath;
});
// drv file is always CA
srcStore->ensurePath(drvPath);
copyStorePath(srcStore, dstStore, drvPath, repair, checkSigs);
dstStore->buildPaths({{
drvPath,