Reverse order in rebar_utils:get_deprecated_global/3

This commit is contained in:
Tuncer Ayaz 2012-01-06 19:50:20 +01:00
parent b594d356e1
commit 1daa15293a

View file

@ -234,17 +234,17 @@ vcs_vsn(Vcs, Dir) ->
end. end.
get_deprecated_global(OldOpt, NewOpt, When) -> get_deprecated_global(OldOpt, NewOpt, When) ->
case rebar_config:get_global(OldOpt, undefined) of
undefined ->
case rebar_config:get_global(NewOpt, undefined) of case rebar_config:get_global(NewOpt, undefined) of
undefined ->
case rebar_config:get_global(OldOpt, undefined) of
undefined -> undefined ->
undefined; undefined;
New ->
New
end;
Old -> Old ->
deprecated(OldOpt, OldOpt, NewOpt, When), deprecated(OldOpt, OldOpt, NewOpt, When),
Old Old
end;
New ->
New
end. end.
%% ==================================================================== %% ====================================================================