about summary refs log tree commit diff
path: root/src/libstore/store.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-04-14T08·08+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-04-14T08·08+0000
commita4d2b22c8ca5064f1da614914c7ea336eedd65c4 (patch)
tree6ba789f13a5a70011a0efd8aa67d132eb88431b4 /src/libstore/store.hh
parent87bf541f23723f6a8c7f05c89984c5df0c450ec2 (diff)
* Be stricter in verifying store paths.
Diffstat (limited to 'src/libstore/store.hh')
-rw-r--r--src/libstore/store.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/store.hh b/src/libstore/store.hh
index 143cad8dbe7a..571d498c362d 100644
--- a/src/libstore/store.hh
+++ b/src/libstore/store.hh
@@ -48,6 +48,9 @@ Paths querySubstitutes(const Path & srcPath);
 /* Register the validity of a path. */
 void registerValidPath(const Transaction & txn, const Path & path);
 
+/* Throw an exception if `path' is not directly in the Nix store. */
+void assertStorePath(const Path & path);
+
 /* Checks whether a path is valid. */ 
 bool isValidPath(const Path & path);