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:
parent
51fad07fbd
commit
6351b7e728
8 changed files with 126 additions and 24 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue