Make sure to append overlay files to end of spec; otherwise might be overwritten by canonical install

This commit is contained in:
Dave Smith 2009-12-16 10:26:50 -05:00
parent c3f0f2565b
commit 4d3c7e60d6

View file

@ -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