浏览代码

Make sure zip module is loaded

Before we check for zip:foldl/3 make sure zip module is loaded.
Tuncer Ayaz 15 年前
父节点
当前提交
faf21694fe
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      src/rebar_utils.erl

+ 1
- 0
src/rebar_utils.erl 查看文件

@ -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);

正在加载...
取消
保存