summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-01-06 19:50:20 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-01-06 19:50:20 +0100
commit1daa15293ab98ff8259acf0dbaf807487551c7f4 (patch)
tree31ae6ff488f054a35ff5c94e15baf47355a9ec71
parentb594d356e1fb927e28ce0b285bb39b3e472a3897 (diff)
Reverse order in rebar_utils:get_deprecated_global/3
-rw-r--r--src/rebar_utils.erl14
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.
%% ====================================================================