forked from lix-project/hydra
* A `nix-build' Hydra product must be a directory.
This commit is contained in:
parent
61ad98f982
commit
9b25d7b299
|
@ -177,7 +177,7 @@ sub contents : Chained('build') PathPart Args(1) {
|
||||||
|
|
||||||
my $res;
|
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 --`;
|
$res = `cd $path && find . -print0 | xargs -0 ls -ld --`;
|
||||||
error($c, "`ls -lR' error: $?") if $? != 0;
|
error($c, "`ls -lR' error: $?") if $? != 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue