diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-01-06 19:50:20 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-01-06 19:50:20 +0100 |
commit | 1daa15293ab98ff8259acf0dbaf807487551c7f4 (patch) | |
tree | 31ae6ff488f054a35ff5c94e15baf47355a9ec71 | |
parent | b594d356e1fb927e28ce0b285bb39b3e472a3897 (diff) |
Reverse order in rebar_utils:get_deprecated_global/3
-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. %% ==================================================================== |