From e2ef5e07fdc142670f7f3161d3133ff04e99d342 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 30 Nov 2006 17:43:04 +0000 Subject: * Refactoring. There is now an abstract interface class StoreAPI containing functions that operate on the Nix store. One implementation is LocalStore, which operates on the Nix store directly. The next step, to enable secure multi-user Nix, is to create a different implementation RemoteStore that talks to a privileged daemon process that uses LocalStore to perform the actual operations. --- src/nix-instantiate/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nix-instantiate') diff --git a/src/nix-instantiate/main.cc b/src/nix-instantiate/main.cc index 3eb6d3031904..144b13d2bca6 100644 --- a/src/nix-instantiate/main.cc +++ b/src/nix-instantiate/main.cc @@ -11,7 +11,7 @@ #include "attr-path.hh" #include "expr-to-xml.hh" #include "util.hh" -#include "store.hh" +#include "store-api.hh" #include "help.txt.hh" @@ -137,7 +137,7 @@ void run(Strings args) files.push_back(arg); } - openDB(); + store = openStore(); if (readStdin) { Expr e = parseStdin(state); -- cgit 1.4.1