Use wantOutput

Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
Eelco Dolstra 2022-03-25 08:02:49 +01:00 committed by GitHub
parent 187dc080a2
commit 50c229ad9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2613,7 +2613,7 @@ DrvOutputs LocalDerivationGoal::registerOutputs()
signRealisation(thisRealisation);
worker.store.registerDrvOutput(thisRealisation);
}
if (wantedOutputs.empty() || wantedOutputs.count(outputName))
if (wantOutput(outputName, wantedOutputs))
builtOutputs.emplace(thisRealisation.id, thisRealisation);
}