mirror of
https://github.com/NixOS/nix.git
synced 2025-11-24 11:19:35 +01:00
* Merge addToStore and addToStoreFixed.
* addToStore now adds unconditionally, it doesn't use readOnlyMode. Read-only operation is up to the caller (who can call computeStorePathForPath).
This commit is contained in:
parent
ceb982a1be
commit
a824d58b56
11 changed files with 40 additions and 96 deletions
|
|
@ -37,10 +37,8 @@ public:
|
|||
|
||||
void queryReferrers(const Path & path, PathSet & referrers);
|
||||
|
||||
Path addToStore(const Path & srcPath);
|
||||
|
||||
Path addToStoreFixed(bool recursive, string hashAlgo,
|
||||
const Path & srcPath);
|
||||
Path addToStore(const Path & srcPath, bool fixed = false,
|
||||
bool recursive = false, string hashAlgo = "");
|
||||
|
||||
Path addTextToStore(const string & suffix, const string & s,
|
||||
const PathSet & references);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue