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

Before moving scanForStateReferences(...)

This commit is contained in:
Wouter den Breejen 2007-06-19 13:04:05 +00:00
parent bdecf3bdbc
commit b1cc9e9a45
11 changed files with 142 additions and 92 deletions

View file

@ -276,6 +276,20 @@ static void performOp(Source & from, Sink & to, unsigned int op)
writeStringSet(paths, to);
break;
}
case wopQueryStateReferences:
case wopQueryStateReferrers: {
Path path = readStorePath(from);
startWork();
PathSet paths;
if (op == wopQueryStateReferences)
store->queryStateReferences(path, paths);
//else
// store->queryStateReferrers(path, paths); //TODO TODO implemnt function, and then commen out !!!!!!!!!!!!!!!!!!!!!
stopWork();
writeStringSet(paths, to);
break;
}
case wopAddToStore: {
/* !!! uberquick hack */