diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-12-03 18:05:14 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-12-03 18:05:14 +0000 |
commit | 82ae85de2759eaa68bb2411a1f0a640cf9f8e76a (patch) | |
tree | ace4e4f8cc45088a7b54b5251fc4c178da8615a8 /src/libstore/local-store.hh | |
parent | 5eaf644c99c78ed89b2cab1d10d630435fd55d28 (diff) |
* addToStore() in nix-worker: don't write the NAR dump received from
the client to a temporary directory, as that is highly inefficient.
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r-- | src/libstore/local-store.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index 77e46fc3c..f201ddbde 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -93,6 +93,13 @@ public: bool recursive = true, HashType hashAlgo = htSHA256, PathFilter & filter = defaultPathFilter); + /* Like addToStore(), but the contents of the path are contained + in `dump', which is either a NAR serialisation (if recursive == + true) or simply the contents of a regular file (if recursive == + false). */ + Path addToStoreFromDump(const string & dump, const string & name, + bool recursive = true, HashType hashAlgo = htSHA256); + Path addTextToStore(const string & name, const string & s, const PathSet & references); |