aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-11-04 10:41:29 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-11-04 10:41:29 +0100
commit06a86aee15930205f294859bf1e3ac9104029a29 (patch)
tree301d09300cff9a14e6bfa9a08717fb44b427e38a
parent3cc99771182591925bed4186f9e0c1623109202f (diff)
nix-store --gc: Don't warn about missing manifests directory
-rw-r--r--src/libstore/gc.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index e9db711e7..ebee4859f 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -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;