From faf21694fe890a4b10a1fdd1c3ae8ec470c13aa5 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Thu, 11 Mar 2010 01:27:46 +0100 Subject: Make sure zip module is loaded Before we check for zip:foldl/3 make sure zip module is loaded. --- src/rebar_utils.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 0ac6cf1..e7d22fa 100644 --- a/src/rebar_utils.erl +++ b/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); -- cgit v1.1