nix-store -q --roots: Respect the gc-keep-outputs/gc-keep-derivations settings
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.
This commit is contained in:
		
							parent
							
								
									06f62defe6
								
							
						
					
					
						commit
						2754a07ead
					
				
					 9 changed files with 63 additions and 24 deletions
				
			
		|  | @ -133,6 +133,12 @@ public: | |||
|        no deriver has been set. */ | ||||
|     virtual Path queryDeriver(const Path & path) = 0; | ||||
| 
 | ||||
|     /* Return all currently valid derivations that have `path' as an
 | ||||
|        output.  (Note that the result of `queryDeriver()' is the | ||||
|        derivation that was actually used to produce `path', which may | ||||
|        not exist anymore.) */ | ||||
|     virtual PathSet queryValidDerivers(const Path & path) = 0; | ||||
| 
 | ||||
|     /* Query the outputs of the derivation denoted by `path'. */ | ||||
|     virtual PathSet queryDerivationOutputs(const Path & path) = 0; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue