diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-01-31 10:19:14 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-01-31 10:28:48 +0100 |
commit | 9e7c1a4bbdbe6129dd9dc385776612c307d3d1bb (patch) | |
tree | 4c213493e9c6fa1045df1b4192061602e31c78eb /src/libstore/local-store.hh | |
parent | 4fa08f3edb413e65816441acfb6c3befee730a06 (diff) |
Use the daemon when we don't have write access to the Nix database
Diffstat (limited to 'src/libstore/local-store.hh')
-rw-r--r-- | src/libstore/local-store.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index ebdf19bf1..5b27f9072 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -253,6 +253,12 @@ private: int getSchema(); +public: + + static bool haveWriteAccess(); + +private: + void openDB(bool create); void makeStoreWritable(); |