mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
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.
This commit is contained in:
parent
152b1d6bf9
commit
1042c10fd0
11 changed files with 352 additions and 13 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue