diff options
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index e5089bdb4515..b63488b8de61 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -1135,8 +1135,7 @@ void DerivationGoal::computeClosure() i != drv.outputs.end(); ++i) { registerValidPath(txn, i->second.path, - contentHashes[i->second.path]); - setReferences(txn, i->second.path, + contentHashes[i->second.path], allReferences[i->second.path]); } txn.commit(); @@ -1494,7 +1493,7 @@ void SubstitutionGoal::finished() Transaction txn; createStoreTransaction(txn); - registerValidPath(txn, storePath, contentHash); + registerValidPath(txn, storePath, contentHash, references); txn.commit(); outputLock->setDeletion(true); |