diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-03-24 23:24:48 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-03-24 23:24:48 +0100 |
commit | fe5509df9a58359a67da8c72ed8721cb3a33371d (patch) | |
tree | 5f994e4b221814cad85e025b05cc1e509ba79a0b /src/libstore/build/local-derivation-goal.cc | |
parent | 09796c026376b49a8bc5bb3a2865db015d3dfb06 (diff) |
Only return wanted outputs
Diffstat (limited to 'src/libstore/build/local-derivation-goal.cc')
-rw-r--r-- | src/libstore/build/local-derivation-goal.cc | 3 |
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; |