* A `nix-build' Hydra product must be a directory.

This commit is contained in:
Eelco Dolstra 2010-02-05 20:07:49 +00:00
parent 61ad98f982
commit 9b25d7b299

View file

@ -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;
}