From 2754a07eadfa3fe263f83830c701748bbd4c0420 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 20 Dec 2012 18:41:44 +0100 Subject: nix-store -q --roots: Respect the gc-keep-outputs/gc-keep-derivations settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So if a path is not garbage solely because it's reachable from a root due to the gc-keep-outputs or gc-keep-derivations settings, ‘nix-store -q --roots’ now shows that root. --- src/libstore/misc.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstore/misc.hh') diff --git a/src/libstore/misc.hh b/src/libstore/misc.hh index fe0bbdd799d7..b4bd9ed8a49f 100644 --- a/src/libstore/misc.hh +++ b/src/libstore/misc.hh @@ -17,9 +17,9 @@ Derivation derivationFromPath(StoreAPI & store, const Path & drvPath); `storePath' is returned; that is, the closures under the `referrers' relation instead of the `references' relation is returned. */ -void computeFSClosure(StoreAPI & store, const Path & storePath, +void computeFSClosure(StoreAPI & store, const Path & path, PathSet & paths, bool flipDirection = false, - bool includeOutputs = false); + bool includeOutputs = false, bool includeDerivers = false); /* Return the path corresponding to the output identifier `id' in the given derivation. */ -- cgit 1.4.1