about summary refs log tree commit diff
path: root/src/libstore/gc.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2009-11-23T17·23+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2009-11-23T17·23+0000
commitae6bf87273b30258408dc292611f3f50015b843c (patch)
tree78c8140f4d93888ab927dd9db317dfd21981ebc5 /src/libstore/gc.cc
parentc364d5d1e36a9f790b0d610aae1d30d8732b58ce (diff)
* `nix-store --gc --print-roots': also print the path of the actual
  root symlink, not just its target.  E.g.:

  /nix/var/nix/profiles/system-99-link -> /nix/store/76kwf88657nq7wgk1hx3l1z5q91zb9wd-system

Diffstat (limited to 'src/libstore/gc.cc')
-rw-r--r--src/libstore/gc.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index 34b5ff267f8b..d3cac06e4c5a 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -614,11 +614,6 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results)
     if (!options.ignoreLiveness)
         addAdditionalRoots(state.roots);
 
-    if (options.action == GCOptions::gcReturnRoots) {
-        results.paths = state.roots;
-        return;
-    }
-
     /* Read the temporary roots.  This acquires read locks on all
        per-process temporary root files.  So after this point no paths
        can be added to the set of temporary roots. */