about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-03-23T11·25+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-03-23T11·25+0000
commitf20f08156031f04a60025bc7a41dd3fcc117baa7 (patch)
tree92fc4f9a07f3504ffc936a2b5b796d527fdd6436 /src/libstore
parenta1e00bf6aa8eb581ff4d47a6287800cf224c6a41 (diff)
* nix-store: `--isvalid' -> `--check-validity', `--validpath' ->
  `--register-validity'.
* `nix-store --register-validity': read arguments from stdin, and
  allow the references and deriver to be set.

Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/store.cc2
-rw-r--r--src/libstore/store.hh1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/store.cc b/src/libstore/store.cc
index 03855408ed4d..e9d65404400e 100644
--- a/src/libstore/store.cc
+++ b/src/libstore/store.cc
@@ -247,7 +247,7 @@ void canonicalisePathMetaData(const Path & path)
 }
 
 
-static bool isValidPathTxn(const Transaction & txn, const Path & path)
+bool isValidPathTxn(const Transaction & txn, const Path & path)
 {
     string s;
     return nixDB.queryString(txn, dbValidPaths, path, s);
diff --git a/src/libstore/store.hh b/src/libstore/store.hh
index d5d8ea81eae8..4a37a66322aa 100644
--- a/src/libstore/store.hh
+++ b/src/libstore/store.hh
@@ -87,6 +87,7 @@ Path toStorePath(const Path & path);
 void canonicalisePathMetaData(const Path & path);
 
 /* Checks whether a path is valid. */ 
+bool isValidPathTxn(const Transaction & txn, const Path & path);
 bool isValidPath(const Path & path);
 
 /* Queries the hash of a valid path. */