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

Before adjusting getStateReferencesClosure_

This commit is contained in:
Wouter den Breejen 2007-06-13 15:18:57 +00:00
parent bc0af4449a
commit 184443d18d
7 changed files with 144 additions and 43 deletions

View file

@ -639,6 +639,8 @@ static Expr prim_derivationStrict(EvalState & state, const ATermVector & args)
printMsg(lvlChatty, format("instantiated `%1%' -> `%2%'") % drvName % drvPath);
//printMsg(lvlError, format("PRIMOPS %1%") % drvPath);
/* Write updated (no need to rebuild) state derivations to the database, so they can be updated at build time
if(enableState && !disableState){
if(store->isValidPath(outPath)){ //Only add when the path is already valid