1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-26 12:10:59 +01:00

Completed updateStateDerivation(Path storepath) method

This commit is contained in:
Wouter den Breejen 2007-06-04 19:41:46 +00:00
parent bcf9d3ab2f
commit 7166ad8eba
7 changed files with 59 additions and 50 deletions

View file

@ -623,8 +623,7 @@ static Expr prim_derivationStrict(EvalState & state, const ATermVector & args)
if(enableState && !disableState){
Path deriver = queryDeriver(noTxn, outPath); //query deriver
if(deriver != drvPath){
printMsg(lvlError, format("Adding to the db: update drv `%2%' with `%1%'") % drvPath % deriver);
store->setUpdatedStateDerivation(drvPath, deriver);
store->setUpdatedStateDerivation(drvPath, outPath);
}
}