From 450c358e2055488897349bf50951cce16ad9bc90 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 7 Feb 2005 13:40:40 +0000 Subject: * Maintain a database table (`derivers') that maps output paths to the derivation that produced them. * `nix-store -qd PATH' prints out the derivation that produced a path. --- src/libstore/build.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libstore/build.cc') diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 881f2dac8899..64443d41a785 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -1140,7 +1140,8 @@ void DerivationGoal::computeClosure() { registerValidPath(txn, i->second.path, contentHashes[i->second.path], - allReferences[i->second.path]); + allReferences[i->second.path], + drvPath); } txn.commit(); @@ -1501,7 +1502,7 @@ void SubstitutionGoal::finished() Transaction txn; createStoreTransaction(txn); - registerValidPath(txn, storePath, contentHash, references); + registerValidPath(txn, storePath, contentHash, references, ""); txn.commit(); outputLock->setDeletion(true); -- cgit 1.4.1