nix-store --gc: Don't warn about missing manifests directory

This commit is contained in:
Eelco Dolstra 2014-11-04 10:41:29 +01:00 committed by Ludovic Courtès
parent 1129a982c4
commit 86b9e6d457
1 changed files with 2 additions and 1 deletions

View File

@ -355,7 +355,8 @@ Roots LocalStore::findRoots()
/* Process direct roots in {gcroots,manifests,profiles}. */
nix::findRoots(*this, settings.nixStateDir + "/" + gcRootsDir, DT_UNKNOWN, roots);
nix::findRoots(*this, settings.nixStateDir + "/manifests", DT_UNKNOWN, roots);
if (pathExists(settings.nixStateDir + "/manifests"))
nix::findRoots(*this, settings.nixStateDir + "/manifests", DT_UNKNOWN, roots);
nix::findRoots(*this, settings.nixStateDir + "/profiles", DT_UNKNOWN, roots);
return roots;