basho / rebar
Erlang Build Tools -- Please file bug and feature requests at http://issues.basho.com.
| commit 191: | e821968f9afb |
| parent 190: | 705c944d242e |
| branch: | default |
Make sure zip module is loaded
Before we check for zip:foldl/3 make sure zip module is loaded.
Tuncer Ayaz /
tuncer
5 months ago
5 months ago
Changed (Δ45 bytes):
raw changeset »
src/rebar_utils.erl (1 lines added, 0 lines removed)
Up to file-list src/rebar_utils.erl:
| … | … | @@ -116,6 +116,7 @@ abort(String, Args) -> |
116 |
116 |
%% this function when the time is right. escript:foldl/3 was an |
117 |
117 |
%% undocumented exported fun and is going to be removed post-R13B04. |
118 |
118 |
escript_foldl(Fun, Acc, File) -> |
119 |
{module, zip} = code:ensure_loaded(zip), |
|
119 |
120 |
case erlang:function_exported(zip, foldl, 3) of |
120 |
121 |
true -> |
121 |
122 |
emulate_escript_foldl(Fun, Acc, File); |
