From c921074c1921d4bf392991a44c5644877f9c567a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 4 Nov 2019 12:55:05 +0100 Subject: [PATCH] RestrictedStore: Implement addToStore() --- src/libstore/build.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 2fd27cfa0..e8b23d396 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -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 accessor = 0) override + { + next->addToStore(info, narSource, repair, checkSigs, accessor); + goal.addDependency(info.path); } Path addToStoreFromDump(const string & dump, const string & name,