chore(update_appup): bugfix: variable not pinned in lambda
This commit is contained in:
parent
fef8a18bfb
commit
af3a1326d1
|
@ -316,7 +316,7 @@ contains_restart_application(Application, Actions) ->
|
||||||
find_application_stop_instruction(Application, Actions) ->
|
find_application_stop_instruction(Application, Actions) ->
|
||||||
{Before, After0} =
|
{Before, After0} =
|
||||||
lists:splitwith(
|
lists:splitwith(
|
||||||
fun({apply, {application, stop, [Application]}}) ->
|
fun({apply, {application, stop, [App]}}) when App =:= Application ->
|
||||||
false;
|
false;
|
||||||
(_) ->
|
(_) ->
|
||||||
true
|
true
|
||||||
|
@ -345,7 +345,7 @@ ensure_version(Version, OldInstructions) ->
|
||||||
case contains_version(Version, OldVersions) of
|
case contains_version(Version, OldVersions) of
|
||||||
false ->
|
false ->
|
||||||
[{Version, []} | OldInstructions];
|
[{Version, []} | OldInstructions];
|
||||||
_ ->
|
true ->
|
||||||
OldInstructions
|
OldInstructions
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
@ -358,10 +358,8 @@ contains_version(Needle, Haystack) when is_list(Needle) ->
|
||||||
nomatch ->
|
nomatch ->
|
||||||
false
|
false
|
||||||
end;
|
end;
|
||||||
(Needle) ->
|
(Vsn) ->
|
||||||
true;
|
Vsn =:= Needle
|
||||||
(_) ->
|
|
||||||
false
|
|
||||||
end,
|
end,
|
||||||
Haystack).
|
Haystack).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue