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 case rebar_config:get_global(NewOpt, undefined) of
undefined -> undefined ->
case rebar_config:get_global(NewOpt, undefined) of case rebar_config:get_global(OldOpt, undefined) of
undefined -> undefined ->
undefined; undefined;
New -> Old ->
New deprecated(OldOpt, OldOpt, NewOpt, When),
Old
end; end;
Old -> New ->
deprecated(OldOpt, OldOpt, NewOpt, When), New
Old
end. end.
%% ==================================================================== %% ====================================================================