From 9b25d7b299dacee4a1b448ca8f15c22811493212 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 5 Feb 2010 20:07:49 +0000 Subject: [PATCH] * A `nix-build' Hydra product must be a directory. --- src/lib/Hydra/Controller/Build.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index 72e84280..11dfca3f 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -177,7 +177,7 @@ sub contents : Chained('build') PathPart Args(1) { my $res; - if ($product->type eq "nix-build") { + if ($product->type eq "nix-build" && -d $path) { $res = `cd $path && find . -print0 | xargs -0 ls -ld --`; error($c, "`ls -lR' error: $?") if $? != 0; }