mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 20:20:58 +01:00
Before giving all store-state-runtime-paths a unique hash storepath
This commit is contained in:
parent
df43c1e5b9
commit
5e59387d40
3 changed files with 40 additions and 12 deletions
|
|
@ -1252,19 +1252,16 @@ PathSet getStateReferencesClosure(const Path & drvpath)
|
|||
|
||||
//get all ...
|
||||
|
||||
return getStateReferencesClosure_(drvpath, empty);
|
||||
return empty; // getStateReferencesClosure_(drvpath, empty);
|
||||
}
|
||||
|
||||
PathSet getStateReferencesClosure_(const Path & drvpath, PathSet & paths)
|
||||
{
|
||||
Transaction txn(nixDB); //TODO should u do a transaction here? ... this might delay the process ...
|
||||
|
||||
Derivation drv = derivationFromPath(derivationPath);
|
||||
//Derivation drv = derivationFromPath(derivationPath);
|
||||
|
||||
for (DerivationOutputs::iterator i = drv.outputs.begin(); i != drv.outputs.end(); ++i)
|
||||
{
|
||||
|
||||
}
|
||||
//for (DerivationOutputs::iterator i = drv.outputs.begin(); i != drv.outputs.end(); ++i)
|
||||
|
||||
/*
|
||||
for (Strings::iterator i = data.begin(); i != data.end(); ++i)
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ void addStateDeriver(const Transaction & txn, const Path & storePath, const Path
|
|||
PathSet mergeNewDerivationIntoList(const Path & storepath, const Path & newdrv, const PathSet drvs, bool deleteDrvs = false);
|
||||
|
||||
/* TODO */
|
||||
PathSet getStateReferencesClosure_(const Path & drvpath, PathSet & paths);
|
||||
//PathSet getStateReferencesClosure_(const Path & drvpath, PathSet & paths);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue