Only pass the drv path if it is still valid

This commit is contained in:
Shea Levy 2015-08-10 13:47:39 -04:00
parent 2a240e458e
commit ce5ffa9fba

View file

@ -107,13 +107,17 @@ sub fetchInputBuild {
my $mainOutput = getMainOutput($prevBuild);
return
my $result =
{ storePath => $mainOutput->path
, id => $prevBuild->id
, version => $version
, outputName => $mainOutput->name
, drvPath => $prevBuild->drvPath
};
if (isValidPath($prevBuild->drvPath)) {
$input->{drvPath} = $prevBuild->drvPath;
}
return $result;
}