mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Make sure update_info returns atoms only (EJAB-1595) (Thanks to Jose M Herrero)
This commit is contained in:
parent
d5506a3ff0
commit
d47dee8009
@ -142,23 +142,26 @@ build_script(Dir, UpdatedBeams) ->
|
|||||||
release_handler_1:check_script(
|
release_handler_1:check_script(
|
||||||
LowLevelScript,
|
LowLevelScript,
|
||||||
[{ejabberd, "", filename:join(Dir, "..")}]),
|
[{ejabberd, "", filename:join(Dir, "..")}]),
|
||||||
case Check of
|
Check1 = case Check of
|
||||||
ok ->
|
ok ->
|
||||||
%% This clause is for OTP R14B03 and older.
|
%% This clause is for OTP R14B03 and older.
|
||||||
%% Newer Dialyzer reports a never match pattern; don't worry.
|
%% Newer Dialyzer reports a never match pattern; don't worry.
|
||||||
?DEBUG("script: ~p~n", [Script]),
|
?DEBUG("script: ~p~n", [Script]),
|
||||||
?DEBUG("low level script: ~p~n", [LowLevelScript]),
|
?DEBUG("low level script: ~p~n", [LowLevelScript]),
|
||||||
?DEBUG("check: ~p~n", [Check]);
|
?DEBUG("check: ~p~n", [Check]),
|
||||||
{ok, []} ->
|
ok;
|
||||||
?DEBUG("script: ~p~n", [Script]),
|
{ok, []} ->
|
||||||
?DEBUG("low level script: ~p~n", [LowLevelScript]),
|
?DEBUG("script: ~p~n", [Script]),
|
||||||
?DEBUG("check: ~p~n", [Check]);
|
?DEBUG("low level script: ~p~n", [LowLevelScript]),
|
||||||
_ ->
|
?DEBUG("check: ~p~n", [Check]),
|
||||||
?ERROR_MSG("script: ~p~n", [Script]),
|
ok;
|
||||||
?ERROR_MSG("low level script: ~p~n", [LowLevelScript]),
|
_ ->
|
||||||
?ERROR_MSG("check: ~p~n", [Check])
|
?ERROR_MSG("script: ~p~n", [Script]),
|
||||||
end,
|
?ERROR_MSG("low level script: ~p~n", [LowLevelScript]),
|
||||||
{Script, LowLevelScript, Check}.
|
?ERROR_MSG("check: ~p~n", [Check]),
|
||||||
|
error
|
||||||
|
end,
|
||||||
|
{Script, LowLevelScript, Check1}.
|
||||||
|
|
||||||
%% Copied from Erlang/OTP file: lib/sasl/src/systools.hrl
|
%% Copied from Erlang/OTP file: lib/sasl/src/systools.hrl
|
||||||
-record(application,
|
-record(application,
|
||||||
|
Loading…
Reference in New Issue
Block a user