diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-10-04 15:22:25 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-10-04 15:22:25 -0400 |
commit | 70f75be199d8db959d313dc40111893fba56415f (patch) | |
tree | f099812cc963ba6e1235a3cea95b32a0a83c0f47 /src/libexpr/get-drvs.hh | |
parent | ad328bea15e2708e5aa784c33ba8bfbc86d02e0d (diff) |
getDerivation(): Don't always quietly ignore assertion failure
Ignoring assertion failures makes some sense for nix-env -qa, but not
for nix-instantiate/nix-build or hydra-eval-jobs.
Diffstat (limited to 'src/libexpr/get-drvs.hh')
-rw-r--r-- | src/libexpr/get-drvs.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libexpr/get-drvs.hh b/src/libexpr/get-drvs.hh index 25d8baa55..8159417a0 100644 --- a/src/libexpr/get-drvs.hh +++ b/src/libexpr/get-drvs.hh @@ -75,10 +75,12 @@ typedef list<DrvInfo> DrvInfos; /* If value `v' denotes a derivation, store information about the derivation in `drv' and return true. Otherwise, return false. */ -bool getDerivation(EvalState & state, Value & v, DrvInfo & drv); +bool getDerivation(EvalState & state, Value & v, DrvInfo & drv, + bool ignoreAssertionFailures); void getDerivations(EvalState & state, Value & v, const string & pathPrefix, - Bindings & autoArgs, DrvInfos & drvs); + Bindings & autoArgs, DrvInfos & drvs, + bool ignoreAssertionFailures); } |