RestrictedStore: Implement addToStore()

This commit is contained in:
Eelco Dolstra 2019-11-04 12:55:05 +01:00
parent c4d7c76b64
commit c921074c19
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -2721,7 +2721,14 @@ struct RestrictedStore : public LocalFSStore
Path addToStore(const string & name, const Path & srcPath,
bool recursive = true, HashType hashAlgo = htSHA256,
PathFilter & filter = defaultPathFilter, RepairFlag repair = NoRepair) override
{ throw Error("addToStore");
{ throw Error("addToStore"); }
void addToStore(const ValidPathInfo & info, Source & narSource,
RepairFlag repair = NoRepair, CheckSigsFlag checkSigs = CheckSigs,
std::shared_ptr<FSAccessor> accessor = 0) override
{
next->addToStore(info, narSource, repair, checkSigs, accessor);
goal.addDependency(info.path);
}
Path addToStoreFromDump(const string & dump, const string & name,