From f20f08156031f04a60025bc7a41dd3fcc117baa7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 23 Mar 2005 11:25:20 +0000 Subject: * 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. --- src/libstore/store.cc | 2 +- src/libstore/store.hh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libstore') 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. */ -- cgit 1.4.1