diff options
author | Robert Hensing <robert@roberthensing.nl> | 2020-10-31 23:52:09 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2020-10-31 23:56:03 +0100 |
commit | e8a45d07bccc315de88b8434393082eee6e944a8 (patch) | |
tree | e974e1216c87c46a4a19b9823a1deec1ccf093dc /src/libstore/build | |
parent | dc5696b84f55a6706cddc3d747ef1aeffb564f43 (diff) |
Restore RestrictedStore.addToStoreFromDump implementation
It was accidentally removed in commit ca30abb3fb36440e5a13161c39647189036fc18f
Diffstat (limited to 'src/libstore/build')
-rw-r--r-- | src/libstore/build/derivation-goal.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc index 3dacb218c..19d96dd8f 100644 --- a/src/libstore/build/derivation-goal.cc +++ b/src/libstore/build/derivation-goal.cc @@ -2074,6 +2074,14 @@ struct RestrictedStore : public LocalFSStore, public virtual RestrictedStoreConf return path; } + StorePath addToStoreFromDump(Source & dump, const string & name, + FileIngestionMethod method = FileIngestionMethod::Recursive, HashType hashAlgo = htSHA256, RepairFlag repair = NoRepair) override + { + auto path = next->addToStoreFromDump(dump, name, method, hashAlgo, repair); + goal.addDependency(path); + return path; + } + void narFromPath(const StorePath & path, Sink & sink) override { if (!goal.isAllowed(path)) |