diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2016-10-07 18:13:40 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2016-10-07 18:13:40 +0200 |
commit | 629ab8002218e9b526d947a9b7a2eccddc3f331c (patch) | |
tree | 1c7afac50fcad1019c9b45b97e421d6a3d121823 /src/libstore/store-api.hh | |
parent | b0f7f9c98f2b54e34e9344f817d30363533d108f (diff) |
importPaths(): Fix accessor support for Hydra
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r-- | src/libstore/store-api.hh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index cba4deaad..8efacfd18 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -461,6 +461,17 @@ public: /* Return an object to access files in the Nix store. */ virtual ref<FSAccessor> getFSAccessor() = 0; +private: + + /* Inform an accessor about the NAR contents of a store path. Used + by importPaths() to speed up subsequent access to the imported + paths when used with binary cache stores. */ + virtual void addPathToAccessor(ref<FSAccessor>, const Path & storePath, const ref<std::string> & data) + { + } + +public: + /* Add signatures to the specified store path. The signatures are not verified. */ virtual void addSignatures(const Path & storePath, const StringSet & sigs) = 0; |