Selaa lähdekoodia

Make sure zip module is loaded

Before we check for zip:foldl/3 make sure zip module is loaded.
Tuncer Ayaz 15 vuotta sitten
vanhempi
commit
faf21694fe
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. +1
    -0
      src/rebar_utils.erl

+ 1
- 0
src/rebar_utils.erl Näytä tiedosto

@ -116,6 +116,7 @@ abort(String, Args) ->
%% this function when the time is right. escript:foldl/3 was an
%% undocumented exported fun and is going to be removed post-R13B04.
escript_foldl(Fun, Acc, File) ->
{module, zip} = code:ensure_loaded(zip),
case erlang:function_exported(zip, foldl, 3) of
true ->
emulate_escript_foldl(Fun, Acc, File);

Ladataan…
Peruuta
Tallenna