From 1daa15293ab98ff8259acf0dbaf807487551c7f4 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Fri, 6 Jan 2012 19:50:20 +0100 Subject: Reverse order in rebar_utils:get_deprecated_global/3 --- src/rebar_utils.erl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index b98eb94..787264c 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -234,17 +234,17 @@ vcs_vsn(Vcs, Dir) -> end. get_deprecated_global(OldOpt, NewOpt, When) -> - case rebar_config:get_global(OldOpt, undefined) of + case rebar_config:get_global(NewOpt, undefined) of undefined -> - case rebar_config:get_global(NewOpt, undefined) of + case rebar_config:get_global(OldOpt, undefined) of undefined -> undefined; - New -> - New + Old -> + deprecated(OldOpt, OldOpt, NewOpt, When), + Old end; - Old -> - deprecated(OldOpt, OldOpt, NewOpt, When), - Old + New -> + New end. %% ==================================================================== -- cgit v1.1