* Create /nix/var/nix/db if it's missing.

This commit is contained in:
Eelco Dolstra 2010-12-13 13:42:34 +00:00
parent 100becf8d1
commit 5833243c92
1 changed files with 1 additions and 0 deletions

View File

@ -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);