aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-12 15:13:47 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-12 15:13:47 +0100
commit0cad1f80492ecf9b4a3420c1436c79a0648de79b (patch)
tree779cf1c2c22973306408d9639f4c29541baafa2b /src/libstore/build.cc
parent1c57ab8b310264557bdbd8aa135f037dd9bf954a (diff)
--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.
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index f776798b0..0b6a214ef 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -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;
}