mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 22:21:26 +00:00
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.
|
||||
if isThenElse p then
|
||||
if condition then
|
||||
foldProperty (a: p.thenPart) id content
|
||||
copyProperties content p.thenPart
|
||||
else
|
||||
foldProperty (a: p.elsePart) id content
|
||||
copyProperties content p.elsePart
|
||||
# ignore the condition.
|
||||
else if isAlways p then
|
||||
foldProperty (a: p.value) id content
|
||||
copyProperties content p.value
|
||||
# otherwise (isIf)
|
||||
else
|
||||
evalIf content (condition && p.condition) (tail list);
|
||||
|
Loading…
Reference in New Issue
Block a user