diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-02-07T13·40+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-02-07T13·40+0000 |
commit | 450c358e2055488897349bf50951cce16ad9bc90 (patch) | |
tree | f669cc7b444fc753b8964b8de68d9571a83cc08b /src/libstore/build.cc | |
parent | a37338815de6affd44f927712143f626c8e6d79d (diff) |
* 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.
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r-- | src/libstore/build.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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); |