diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-26T14·20+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-03-02T14·46+0100 |
commit | cca4a8dc1a622ab086639e5c09347303c062922e (patch) | |
tree | ffcb9e1ea9874b1408098baae1a35bc768dcee56 /src/libstore/binary-cache-store.hh | |
parent | 00b2c05749f9777a91543cad9ecafb0981389be6 (diff) |
importPaths(): Optionally add NARs to binary cache accessor
This enables an optimisation in hydra-queue-runner, preventing a download of a NAR it just uploaded to the cache when reading files like hydra-build-products.
Diffstat (limited to 'src/libstore/binary-cache-store.hh')
-rw-r--r-- | src/libstore/binary-cache-store.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstore/binary-cache-store.hh b/src/libstore/binary-cache-store.hh index c6f319d1bc82..6feb84cd2b10 100644 --- a/src/libstore/binary-cache-store.hh +++ b/src/libstore/binary-cache-store.hh @@ -127,9 +127,10 @@ public: void exportPath(const Path & path, bool sign, Sink & sink) override; - Paths importPaths(bool requireSignature, Source & source) override; + Paths importPaths(bool requireSignature, Source & source, + std::shared_ptr<FSAccessor> accessor) override; - Path importPath(Source & source); + Path importPath(Source & source, std::shared_ptr<FSAccessor> accessor); void buildPaths(const PathSet & paths, BuildMode buildMode = bmNormal) override; |