aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/local-derivation-goal.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-03-24 23:24:48 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-03-24 23:24:48 +0100
commitfe5509df9a58359a67da8c72ed8721cb3a33371d (patch)
tree5f994e4b221814cad85e025b05cc1e509ba79a0b /src/libstore/build/local-derivation-goal.cc
parent09796c026376b49a8bc5bb3a2865db015d3dfb06 (diff)
Only return wanted outputs
Diffstat (limited to 'src/libstore/build/local-derivation-goal.cc')
-rw-r--r--src/libstore/build/local-derivation-goal.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc
index 75e7e6ca3..ed83c4770 100644
--- a/src/libstore/build/local-derivation-goal.cc
+++ b/src/libstore/build/local-derivation-goal.cc
@@ -2613,7 +2613,8 @@ DrvOutputs LocalDerivationGoal::registerOutputs()
signRealisation(thisRealisation);
worker.store.registerDrvOutput(thisRealisation);
}
- builtOutputs.emplace(thisRealisation.id, thisRealisation);
+ if (wantedOutputs.empty() || wantedOutputs.count(outputName))
+ builtOutputs.emplace(thisRealisation.id, thisRealisation);
}
return builtOutputs;