summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2009-12-16 10:26:50 -0500
committerDave Smith <dizzyd@dizzyd.com>2009-12-16 10:26:50 -0500
commit4d3c7e60d6743eb65b9173f0073d2e33f44e785d (patch)
tree213aed888248364eabf971f8c18fbcb2b2186865
parentc3f0f2565b1115aedee19bd8caf233897cb69da7 (diff)
Make sure to append overlay files to end of spec; otherwise might be overwritten by canonical install
-rw-r--r--src/rebar_reltool.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_reltool.erl b/src/rebar_reltool.erl
index ee2b1ce..1e5774a 100644
--- a/src/rebar_reltool.erl
+++ b/src/rebar_reltool.erl
@@ -203,7 +203,7 @@ process_rebar_specs([{overlay, Source} | Rest], Spec) ->
case file:list_dir(Source) of
{ok, Files} ->
OverlaySpec = spec_copy_overlay(Files, Source, []),
- process_rebar_specs(Rest, [OverlaySpec | Spec]);
+ process_rebar_specs(Rest, Spec ++ OverlaySpec);
{error, Reason} ->
?ERROR("Failed to list overlay directory ~p: ~p\n", [Source, Reason]),
?FAIL