Don't add a nix-build build product unless $out is a directory

This commit is contained in:
Eelco Dolstra 2013-05-28 18:42:16 +02:00
parent 1f1615e80b
commit 77e37c1ea3

View file

@ -362,6 +362,7 @@ sub addBuildProducts {
foreach my $output ($build->buildoutputs->all) {
my $outPath = $output->path;
next unless -d $outPath;
$db->resultset('BuildProducts')->create(
{ build => $build->id
, productnr => $productnr++