about summary refs log tree commit diff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-12-13T13·42+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-12-13T13·42+0000
commit5833243c92f28759ff0fc1ff9266535a3230e2d6 (patch)
treeee52c08268e1ec388fcdd389387d85ff1f764b8f /src/libstore/local-store.cc
parent100becf8d1b95055c73a024f1a2b318690de72f6 (diff)
* Create /nix/var/nix/db if it's missing.
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index b80f66412576..32c7a533056e 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -199,6 +199,7 @@ LocalStore::LocalStore()
     Path profilesDir = nixStateDir + "/profiles";
     createDirs(nixStateDir + "/profiles");
     createDirs(nixStateDir + "/temproots");
+    createDirs(nixDBPath);
     Path gcRootsDir = nixStateDir + "/gcroots";
     if (!pathExists(gcRootsDir)) {
         createDirs(gcRootsDir);