aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2020-09-09 11:18:12 +0200
committerregnat <rg@regnat.ovh>2020-09-16 13:53:08 +0200
commitfa32560169ffa55b9e0b6d5f04c3792acf0c544a (patch)
tree61c605aebb1c2385ba4401f55059da1e55a4cd21 /src/libstore/store-api.cc
parent7d5bdf8b5679cc7b2b9b4d9caf5af9ca52211336 (diff)
Fix the registration of stores
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 4a46b5160..0f321b434 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -1093,7 +1093,7 @@ ref<Store> openStore(const std::string & uri_,
return ref<Store>(store);
}
- for (auto implem : *implementations) {
+ for (auto implem : *Implementations::registered) {
auto store = implem.open(uri, params);
if (store) {
store->warnUnknownSettings();
@@ -1136,5 +1136,6 @@ std::list<ref<Store>> getDefaultSubstituters()
return stores;
}
+std::vector<StoreFactory> * Implementations::registered = 0;
}