1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-27 04:30:59 +01:00

before changing db schema

This commit is contained in:
Wouter den Breejen 2007-05-25 12:27:36 +00:00
parent c9e78a973a
commit 0a303ea2c0
9 changed files with 402 additions and 1 deletions

View file

@ -72,6 +72,14 @@ static TableId dbSubstitutes = 0;
static TableId dbDerivers = 0;
/* dbStateCounters :: StatePath -> Int
This table lists the state folders that state managed components
and are of type interval.
*/
static TableId dbStateCounters = 0;
bool Substitute::operator == (const Substitute & sub) const
{
return program == sub.program
@ -352,6 +360,9 @@ void queryReferences(const Transaction & txn,
const Path & storePath, PathSet & references)
{
Paths references2;
//WOUTER EDIT
if (!isRealisablePath(txn, storePath))
throw Error(format("path `%1%' is not valid") % storePath);
nixDB.queryStrings(txn, dbReferences, storePath, references2);