25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Use override syntax that rebar3 accepts

This commit is contained in:
Paweł Chmielowski 2018-01-15 11:56:13 +01:00
parent d3aab2ea18
commit 99f8e58eaf
2 changed files with 4 additions and 4 deletions

View File

@ -2,11 +2,11 @@
-export([preprocess/2]). -export([preprocess/2]).
override_opts(override, Config, Opts) -> override_opts(override, Config, Opts) ->
lists:foldl(fun({Opt, Value}, Conf) -> lists:foldl(fun({Opt, [Value]}, Conf) ->
rebar_config:set(Conf, Opt, Value) rebar_config:set(Conf, Opt, Value)
end, Config, Opts); end, Config, Opts);
override_opts(add, Config, Opts) -> override_opts(add, Config, Opts) ->
lists:foldl(fun({Opt, Value}, Conf) -> lists:foldl(fun({Opt, [Value]}, Conf) ->
V = rebar_config:get_local(Conf, Opt, []), V = rebar_config:get_local(Conf, Opt, []),
rebar_config:set(Conf, Opt, [Value | V]) rebar_config:set(Conf, Opt, [Value | V])
end, Config, Opts). end, Config, Opts).

View File

@ -298,8 +298,8 @@ GenDepsConfigure =
fun(Hooks) -> fun(Hooks) ->
lists:map(fun({Pkg, Flags}) -> lists:map(fun({Pkg, Flags}) ->
DepPath = ResolveDepPath("deps/" ++ Pkg ++ "/"), DepPath = ResolveDepPath("deps/" ++ Pkg ++ "/"),
{add, list_to_atom(Pkg), [{pre_hooks, {'compile', {add, list_to_atom(Pkg), [{pre_hooks, [{'compile',
lists:flatten(GenDepConfigureLine(DepPath, Flags))}}]} lists:flatten(GenDepConfigureLine(DepPath, Flags))}]}]}
end, Hooks) end, Hooks)
end, end,