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

added dbValidStatePaths, StatePaths are now also registered as valid and can be query'd on validity

This commit is contained in:
Wouter den Breejen 2007-06-22 14:04:06 +00:00
parent 51fad07fbd
commit 6351b7e728
8 changed files with 126 additions and 24 deletions

View file

@ -244,6 +244,24 @@ static void performOp(Source & from, Sink & to, unsigned int op)
writeInt(result, to);
break;
}
case wopIsValidStatePath: {
Path path = readStorePath(from);
startWork();
bool result = store->isValidStatePath(path);
stopWork();
writeInt(result, to);
break;
}
case wopIsValidComponentOrStatePath: {
Path path = readStorePath(from);
startWork();
bool result = store->isValidComponentOrStatePath(path);
stopWork();
writeInt(result, to);
break;
}
case wopHasSubstitutes: {
Path path = readStorePath(from);