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

nix-state now works, state is recursively commited (when necessary)

This commit is contained in:
Wouter den Breejen 2007-06-27 15:43:16 +00:00
parent c0dcfed3c3
commit 3d22bd50b3
17 changed files with 457 additions and 277 deletions

View file

@ -280,6 +280,15 @@ static void performOp(Source & from, Sink & to, unsigned int op)
writeString(printHash(hash), to);
break;
}
case wopQueryStatePathDrv: {
Path path = readStorePath(from); //TODO !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! needs to be the state path
startWork();
Path p = store->queryStatePathDrv(path);
stopWork();
writeString(p, to);
break;
}
case wopQueryReferences:
case wopQueryReferrers: {
@ -303,7 +312,7 @@ static void performOp(Source & from, Sink & to, unsigned int op)
if (op == wopQueryStateReferences)
store->queryStateReferences(path, paths);
else
store->queryStateReferrers(path, paths); //TODO Does this work???
store->queryStateReferrers(path, paths); //TODO Does this work???, how about the state path?????????
stopWork();
writeStringSet(paths, to);
break;