From 2d5bd56605a2555939cec1eb25092395609ef2ba Mon Sep 17 00:00:00 2001 From: serge Date: Wed, 17 Oct 2012 22:29:52 -0400 Subject: Fix return value of rebar:overlay/2 When 'rebar overlay' is run rebar_core got a wrong result {Config, ok} from rebar_reltool instead of {ok, Config}. --- src/rebar_reltool.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_reltool.erl b/src/rebar_reltool.erl index 6524e68..94ba2af 100644 --- a/src/rebar_reltool.erl +++ b/src/rebar_reltool.erl @@ -67,7 +67,7 @@ generate(Config0, ReltoolFile) -> overlay(Config, ReltoolFile) -> %% Load the reltool configuration from the file {Config1, ReltoolConfig} = rebar_rel_utils:load_config(Config, ReltoolFile), - {Config1, process_overlay(Config, ReltoolConfig)}. + {process_overlay(Config, ReltoolConfig), Config1}. clean(Config, ReltoolFile) -> {Config1, ReltoolConfig} = rebar_rel_utils:load_config(Config, ReltoolFile), -- cgit v1.1