guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Ludovic Courtès
Subject: 109/118: nix-store --gc: Don't warn about missing manifests directory
Date: Tue, 19 May 2015 14:46:03 +0000

civodul pushed a commit to branch nix
in repository guix.

commit 86b9e6d4575e5c93f428b8563ae259f0f4014173
Author: Eelco Dolstra <address@hidden>
Date:   Tue Nov 4 10:41:29 2014 +0100

    nix-store --gc: Don't warn about missing manifests directory
---
 nix/libstore/gc.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/nix/libstore/gc.cc b/nix/libstore/gc.cc
index 05d332f..2a53b54 100644
--- a/nix/libstore/gc.cc
+++ b/nix/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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]