Просмотр исходного кода

bug when reread_config from OTP 17

pull/2093/head
Anders Wei 6 лет назад
Родитель
Сommit
29f88cfcd3
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      src/rebar_utils.erl

+ 1
- 1
src/rebar_utils.erl Просмотреть файл

@ -460,7 +460,7 @@ reread_config(ConfigList, Opts) ->
%% NB: we attempt to mimic -config here, which survives app reload,
%% hence {persistent, true}.
SetEnv = case version_tuple(?MODULE:otp_release()) of
{X, _, _} when X =< 17 ->
{X, _, _} when X < 17 ->
fun application:set_env/3;
_ ->
fun (App, Key, Val) -> application:set_env(App, Key, Val, [{persistent, true}]) end

Загрузка…
Отмена
Сохранить