Revert previous commit because this is implicit. Fix property evaluation

error which arose when one module define a value with "mkDefaultValue"
and another module define its value with "mkIf <false>".

svn path=/nixpkgs/trunk/; revision=17759
This commit is contained in:
Nicolas Pierron 2009-10-12 15:16:22 +00:00
parent e82843144c
commit 19648abc05
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ rec {
moduleApply { config = delayProperties; } module; moduleApply { config = delayProperties; } module;
evalDefinitions = opt: values: evalDefinitions = opt: values:
if opt ? options && opt.options != [] && opt ? type && opt.type.delayOnGlobalEval then if opt ? type && opt.type.delayOnGlobalEval then
map (delayPropertiesWithIter opt.type.iter opt.name) map (delayPropertiesWithIter opt.type.iter opt.name)
(evalLocalProperties values) (evalLocalProperties values)
else else

View File

@ -126,7 +126,7 @@ rec {
filter (x: !isNotdef x) ( filter (x: !isNotdef x) (
lib.addErrorContext "while evaluating properties." ( lib.addErrorContext "while evaluating properties." (
triggerPropertiesGlobalEval ( triggerPropertiesGlobalEval (
map triggerPropertiesEval valList evalLocalProperties valList
))) )))
else else
valList; valList;