2013-03-02 09:56:21 +00:00
|
|
|
From: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
|
Date: Sat, 2 Mar 2013 13:35:36 +0400
|
2016-03-02 12:40:32 +00:00
|
|
|
Subject: [PATCH] Remove any traces of long-time obsolete escript:foldl/3
|
2013-03-02 09:56:21 +00:00
|
|
|
|
|
|
|
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
|
|
|
|
|
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl
|
2016-03-02 12:40:32 +00:00
|
|
|
index 64595a2..08f5b5f 100644
|
2013-03-02 09:56:21 +00:00
|
|
|
--- a/src/rebar_utils.erl
|
|
|
|
+++ b/src/rebar_utils.erl
|
2016-03-02 12:40:32 +00:00
|
|
|
@@ -222,12 +222,7 @@ abort(String, Args) ->
|
2013-03-02 09:56:21 +00:00
|
|
|
%% undocumented exported fun and has been removed in R14.
|
|
|
|
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);
|
|
|
|
- false ->
|
|
|
|
- escript:foldl(Fun, Acc, File)
|
|
|
|
- end.
|
|
|
|
+ emulate_escript_foldl(Fun, Acc, File).
|
|
|
|
|
|
|
|
find_executable(Name) ->
|
|
|
|
case os:find_executable(Name) of
|