diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-24 16:52:07 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-24 16:52:07 +0100 |
commit | 30e9d0151699206579df3f442e8517a2f8458cc2 (patch) | |
tree | 9fbc272a13209e30ee820a8545555eaa55c1aed0 /src | |
parent | ba0a81d14f1c3d0635d4b6cad47e4e26b5c5a6ca (diff) |
openStoreAt(): Initialise the binary cache
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/store-api.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index f9c876770..9f72bbd83 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -323,9 +323,11 @@ namespace nix { ref<Store> openStoreAt(const std::string & uri, bool reserveSpace) { if (std::string(uri, 0, 7) == "file://") { - return make_ref<LocalBinaryCacheStore>(std::shared_ptr<Store>(0), + auto store = make_ref<LocalBinaryCacheStore>(std::shared_ptr<Store>(0), "", "", // FIXME: allow the signing key to be set std::string(uri, 7)); + store->init(); + return store; } enum { mDaemon, mLocal, mAuto } mode; |