diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-25T16·43+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-25T16·43+0100 |
commit | 1042c10fd0417fe33dd879317f5d7a73aa6f7fe3 (patch) | |
tree | 32497b429bf45d6338638ec5f20fdcfc48a56c39 /src/libstore/store-api.cc | |
parent | 152b1d6bf9c89b4db9848475e3000821e159d479 (diff) |
Add NAR / Store accessor abstraction
This is primary to allow hydra-queue-runner to extract files like "nix-support/hydra-build-products" from NARs in binary caches.
Diffstat (limited to 'src/libstore/store-api.cc')
-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 7058249f06da..24c05b8b4873 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -332,7 +332,9 @@ ref<Store> openStoreAt(const std::string & uri) enum { mDaemon, mLocal, mAuto } mode; - mode = uri == "daemon" ? mDaemon : mAuto; + mode = + uri == "daemon" ? mDaemon : + uri == "local" ? mLocal : mAuto; if (mode == mAuto) { if (LocalStore::haveWriteAccess()) |