mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 20:20:58 +01:00
before changing db schema
This commit is contained in:
parent
c9e78a973a
commit
0a303ea2c0
9 changed files with 402 additions and 1 deletions
|
|
@ -1377,7 +1377,6 @@ void DerivationGoal::startBuilder()
|
|||
tmpDir = createTempDir();
|
||||
|
||||
/* Create the state directory where the component can store it's state files place */
|
||||
//printMsg(lvlError, format("STATE: `%1%'") % );
|
||||
//We only create state dirs when state is enabled and when the dirs need to be created before the installation
|
||||
if(drv.stateOutputs.size() != 0)
|
||||
if(drv.stateOutputs.find("state")->second.getCreateDirsBeforeInstall())
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue