* nix-build: check the exit status of `nix-store -r'.
This commit is contained in:
		
							parent
							
								
									6a67556f71
								
							
						
					
					
						commit
						b3d3700e11
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
					@ -121,12 +121,14 @@ foreach my $expr (@exprs) {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Build.
 | 
					    # Build.
 | 
				
			||||||
    my $outPaths = `@bindir@/nix-store --add-root "$outLink" --indirect -rv @buildArgs @drvPaths`;
 | 
					    my @outPaths;
 | 
				
			||||||
    my @outPaths = split ' ', $outPaths;
 | 
					    $pid = open(OUTPATHS, "-|") || exec "@bindir@/nix-store", "--add-root", $outLink, "--indirect", "-rv",
 | 
				
			||||||
 | 
					        @buildArgs, @drvPaths;
 | 
				
			||||||
 | 
					    while (<OUTPATHS>) {chomp; push @outPaths, $_;}
 | 
				
			||||||
 | 
					    close OUTPATHS or exit 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    foreach my $outPath (@outPaths) {
 | 
					    foreach my $outPath (@outPaths) {
 | 
				
			||||||
        my $target = readlink $outPath;
 | 
					        my $target = readlink $outPath;
 | 
				
			||||||
        print "$target\n";
 | 
					        print "$target\n";
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue