* `nix-store -qR' and friends: print the paths sorted topologically
under the references relation. This is useful for commands that want to copy paths to another Nix store in the right order.
This commit is contained in:
		
							parent
							
								
									881feb9698
								
							
						
					
					
						commit
						9da367b7d5
					
				
					 3 changed files with 12 additions and 40 deletions
				
			
		|  | @ -242,6 +242,11 @@ Path addPermRoot(const Path & storePath, const Path & gcRoot, | |||
|     bool indirect, bool allowOutsideRootsDir = false); | ||||
| 
 | ||||
| 
 | ||||
| /* Sort a set of paths topologically under the references relation.
 | ||||
|    If p refers to q, then p follows q in this list. */ | ||||
| Paths topoSortPaths(const PathSet & paths); | ||||
| 
 | ||||
| 
 | ||||
| /* For now, there is a single global store API object, but we'll
 | ||||
|    purify that in the future. */ | ||||
| extern boost::shared_ptr<StoreAPI> store; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue