diff options
author | Tristan Sloughter <[email protected]> | 2016-03-24 09:53:49 -0500 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2016-03-24 09:53:49 -0500 |
commit | 946155322d9279401f3e6140627d2b0ebf1dddde (patch) | |
tree | 6496ed27b3a8a627208b9cd4bfd4c70d34a2a0c0 /src/rlx_prv_overlay.erl | |
parent | fee01211334e8d104aaebea2ba98f89db442c067 (diff) | |
parent | c3f01bc7ded59104b363edb8e9efd59db410c058 (diff) | |
download | relx-946155322d9279401f3e6140627d2b0ebf1dddde.tar.gz relx-946155322d9279401f3e6140627d2b0ebf1dddde.tar.bz2 relx-946155322d9279401f3e6140627d2b0ebf1dddde.zip |
Merge pull request #457 from egobrain/fixed-template-args-order-bug
Fixed template args order bug
Diffstat (limited to 'src/rlx_prv_overlay.erl')
-rw-r--r-- | src/rlx_prv_overlay.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rlx_prv_overlay.erl b/src/rlx_prv_overlay.erl index 412e5ba..becdb32 100644 --- a/src/rlx_prv_overlay.erl +++ b/src/rlx_prv_overlay.erl @@ -197,7 +197,9 @@ merge_overlay_vars(State, FileNames) -> %% to the current one being read OverlayRelativeRoot = filename:dirname(FileName), NewTerms = check_overlay_inclusion(State, OverlayRelativeRoot, Terms), - lists:ukeymerge(1, lists:ukeysort(1, NewTerms), Acc); + lists:foldl(fun(NewTerm, A) -> + lists:keystore(element(1, NewTerm), 1, A, NewTerm) + end, Acc, NewTerms); {error, Reason} -> ec_cmd_log:warn(rlx_state:log(State), format_error({unable_to_read_varsfile, FileName, Reason})), |