build-remote.pl: Fix building multiple output derivations
We were importing paths without sorting them topologically, leading to "path is not valid" errors. See e.g. http://hydra.nixos.org/build/12451761
This commit is contained in:
		
							parent
							
								
									b2e0293f02
								
							
						
					
					
						commit
						fa13d3f4f3
					
				
					 3 changed files with 6 additions and 4 deletions
				
			
		|  | @ -992,7 +992,9 @@ static void opServe(Strings opFlags, Strings opArgs) | |||
|             } | ||||
| 
 | ||||
|             case cmdExportPaths: { | ||||
|                 exportPaths(*store, readStorePaths<Paths>(in), false, out); | ||||
|                 Paths sorted = topoSortPaths(*store, readStorePaths<PathSet>(in)); | ||||
|                 reverse(sorted.begin(), sorted.end()); | ||||
|                 exportPaths(*store, sorted, false, out); | ||||
|                 break; | ||||
|             } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue