diff options
-rw-r--r-- | src/rebar_utils.erl | 14 |
1 files 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. %% ==================================================================== |