mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
Make sure zip module is loaded
Before we check for zip:foldl/3 make sure zip module is loaded.
This commit is contained in:
parent
62a2788e8b
commit
faf21694fe
1 changed files with 1 additions and 0 deletions
|
@ -116,6 +116,7 @@ abort(String, Args) ->
|
||||||
%% this function when the time is right. escript:foldl/3 was an
|
%% this function when the time is right. escript:foldl/3 was an
|
||||||
%% undocumented exported fun and is going to be removed post-R13B04.
|
%% undocumented exported fun and is going to be removed post-R13B04.
|
||||||
escript_foldl(Fun, Acc, File) ->
|
escript_foldl(Fun, Acc, File) ->
|
||||||
|
{module, zip} = code:ensure_loaded(zip),
|
||||||
case erlang:function_exported(zip, foldl, 3) of
|
case erlang:function_exported(zip, foldl, 3) of
|
||||||
true ->
|
true ->
|
||||||
emulate_escript_foldl(Fun, Acc, File);
|
emulate_escript_foldl(Fun, Acc, File);
|
||||||
|
|
Loading…
Reference in a new issue