daemon: 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 committed by Ludovic Courtès
parent f83e82cd00
commit 7889e72dad
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 1 additions and 1 deletions

View File

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