diff options
| author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2010-03-11 01:27:46 +0100 | 
|---|---|---|
| committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2010-03-11 01:27:46 +0100 | 
| commit | faf21694fe890a4b10a1fdd1c3ae8ec470c13aa5 (patch) | |
| tree | b12450de4c2218e142370e0446e2ca69d1f3a3c1 | |
| parent | 62a2788e8b61ea371e4a41261c33476125150501 (diff) | |
Make sure zip module is loaded
Before we check for zip:foldl/3 make sure zip module is loaded.
| -rw-r--r-- | src/rebar_utils.erl | 1 | 
1 files changed, 1 insertions, 0 deletions
| 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); | 
