the tryEval builtin does not have a strict evaluation. Add the toXML

builtin to force the evaluation of the configuration value.  Thus the
success flag returned by tryEval corespond to the success of the
whole evaluation.

svn path=/nixpkgs/trunk/; revision=17478
This commit is contained in:
Nicolas Pierron 2009-09-28 18:22:31 +00:00
parent fad1b41fe4
commit b0f639844a
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ rec {
}) (definitionsOf name); }) (definitionsOf name);
config = builtins.tryEval config = builtins.tryEval
(lib.getAttr name result.config); (builtins.toXML (lib.getAttr name result.config));
} }
else if all isAttrs values then else if all isAttrs values then
(recurseInto name modules).options (recurseInto name modules).options