From 9e7c1a4bbdbe6129dd9dc385776612c307d3d1bb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 31 Jan 2016 10:19:14 +0100 Subject: Use the daemon when we don't have write access to the Nix database --- src/libstore/local-store.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libstore/local-store.hh') diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index ebdf19bf1359..5b27f907236d 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(); -- cgit 1.4.1