Only pass the drv path if it is still valid
This commit is contained in:
parent
2a240e458e
commit
ce5ffa9fba
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue