Fix mkThenElse and mkAlways evaluation.
svn path=/nixpkgs/trunk/; revision=14528
This commit is contained in:
parent
de8bbafb53
commit
f624a70ee7
@ -482,12 +482,12 @@ rec {
|
|||||||
# evaluate the condition.
|
# evaluate the condition.
|
||||||
if isThenElse p then
|
if isThenElse p then
|
||||||
if condition then
|
if condition then
|
||||||
foldProperty (a: p.thenPart) id content
|
copyProperties content p.thenPart
|
||||||
else
|
else
|
||||||
foldProperty (a: p.elsePart) id content
|
copyProperties content p.elsePart
|
||||||
# ignore the condition.
|
# ignore the condition.
|
||||||
else if isAlways p then
|
else if isAlways p then
|
||||||
foldProperty (a: p.value) id content
|
copyProperties content p.value
|
||||||
# otherwise (isIf)
|
# otherwise (isIf)
|
||||||
else
|
else
|
||||||
evalIf content (condition && p.condition) (tail list);
|
evalIf content (condition && p.condition) (tail list);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user