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

registerValidPath can now also take state paths as arguments, nix-store still cannot

This commit is contained in:
Wouter den Breejen 2007-06-28 18:59:07 +00:00
parent 04dd3fdf34
commit b32691da2b
7 changed files with 149 additions and 87 deletions

View file

@ -232,10 +232,15 @@ public:
/* Throw an exception if `path' is not directly in the Nix store. */
void assertStorePath(const Path & path);
void assertStatePath(const Path & path);
bool isInStore(const Path & path);
bool isStorePath(const Path & path);
bool isInStateStore(const Path & path);
bool isStatePath(const Path & path);
void checkStoreName(const string & name);
/* Chop off the parts after the top-level store name, e.g.,