Pārlūkot izejas kodu

Merge pull request #2093 from anderswei/master

bug when reread_config running on OTP 17
pull/2076/head
Fred Hebert pirms 6 gadiem
revīziju iesūtīja GitHub
vecāks
revīzija
311ba9e48d
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      src/rebar_utils.erl

+ 1
- 1
src/rebar_utils.erl Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt