about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-12T14·13+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-12T14·13+0100
commit0cad1f80492ecf9b4a3420c1436c79a0648de79b (patch)
tree779cf1c2c22973306408d9639f4c29541baafa2b /src
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')
-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 f776798b0c22..0b6a214efd32 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;
         }