mirror of
https://github.com/NixOS/nix.git
synced 2025-11-27 04:30:59 +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
|
|
@ -163,6 +163,23 @@ bool RemoteStore::isValidPath(const Path & path)
|
|||
return reply != 0;
|
||||
}
|
||||
|
||||
bool RemoteStore::isValidStatePath(const Path & path)
|
||||
{
|
||||
writeInt(wopIsValidStatePath, to);
|
||||
writeString(path, to);
|
||||
processStderr();
|
||||
unsigned int reply = readInt(from);
|
||||
return reply != 0;
|
||||
}
|
||||
|
||||
bool RemoteStore::isValidComponentOrStatePath(const Path & path)
|
||||
{
|
||||
writeInt(wopIsValidComponentOrStatePath, to);
|
||||
writeString(path, to);
|
||||
processStderr();
|
||||
unsigned int reply = readInt(from);
|
||||
return reply != 0;
|
||||
}
|
||||
|
||||
Substitutes RemoteStore::querySubstitutes(const Path & path)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue