mirror of
https://github.com/NixOS/nix
synced 2025-07-03 06:11:46 +02:00
* 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.
This commit is contained in:
parent
a1e00bf6aa
commit
f20f081560
4 changed files with 34 additions and 17 deletions
|
@ -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);
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue