--check: Fix "failed to produce output path"

This occured when sandbox building is disabled, at least one output
exists, and at least one other output does not.
This commit is contained in:
Eelco Dolstra 2016-01-12 15:13:47 +01:00
parent 1c57ab8b31
commit 0cad1f8049

View file

@ -2662,7 +2662,7 @@ void DerivationGoal::registerOutputs()
&& redirectedBadOutputs.find(path) != redirectedBadOutputs.end()
&& pathExists(redirected))
replaceValidPath(path, redirected);
if (buildMode == bmCheck)
if (buildMode == bmCheck && redirected != "")
actualPath = redirected;
}