mirror of
https://github.com/NixOS/nix
synced 2025-06-28 13:41:15 +02:00
Move addToStoreFromDump to Store
This commit is contained in:
parent
05819d013f
commit
992a2ad475
3 changed files with 9 additions and 5 deletions
|
@ -422,6 +422,13 @@ public:
|
|||
bool recursive = true, HashType hashAlgo = htSHA256,
|
||||
PathFilter & filter = defaultPathFilter, RepairFlag repair = NoRepair) = 0;
|
||||
|
||||
// FIXME: remove?
|
||||
virtual Path addToStoreFromDump(const string & dump, const string & name,
|
||||
bool recursive = true, HashType hashAlgo = htSHA256, RepairFlag repair = NoRepair)
|
||||
{
|
||||
throw Error("addToStoreFromDump() is not supported by this store");
|
||||
}
|
||||
|
||||
/* Like addToStore, but the contents written to the output path is
|
||||
a regular file containing the given string. */
|
||||
virtual Path addTextToStore(const string & name, const string & s,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue