summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2017-06-01 15:31:46 -0400
committerGitHub <noreply@github.com>2017-06-01 15:31:46 -0400
commit5ab3230649e30080ce88241f445eeed90a461792 (patch)
tree083ca6d22bc7c39242fd6e0efa59ef38794024bd /src
parent87e756d8dc30270a90d0fc12186bc4b14c1543a5 (diff)
parent249b5f13eb8f1859d7a70ab316bc7541543aaf57 (diff)
Merge pull request #1563 from djnym/relx-overlay-fix
Avoid reversing relx overlays.
Diffstat (limited to 'src')
-rw-r--r--src/rebar_relx.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar_relx.erl b/src/rebar_relx.erl
index abfb8fc..17c0bd6 100644
--- a/src/rebar_relx.erl
+++ b/src/rebar_relx.erl
@@ -6,6 +6,10 @@
-export([do/4,
format_error/1]).
+-ifdef(TEST).
+-export([merge_overlays/1]).
+-endif.
+
-include("rebar.hrl").
%% ===================================================================
@@ -64,5 +68,5 @@ merge_overlays(Config) ->
(_) -> false
end, Config),
%% Have profile overlay entries come before others to match how profiles work elsewhere
- NewOverlay = lists:reverse(lists:flatmap(fun({overlay, Overlay}) -> Overlay end, Overlays)),
+ NewOverlay = lists:flatmap(fun({overlay, Overlay}) -> Overlay end, lists:reverse(Overlays)),
[{overlay, NewOverlay} | Others].