Parcourir la source

Merge pull request #2167 from ferd/clear-bootstrap-failures

Handle missing OTP apps better
pull/2169/head
Fred Hebert il y a 5 ans
committed by GitHub
Parent
révision
41b76f050d
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 15 ajouts et 4 suppressions
  1. +15
    -4
      bootstrap

+ 15
- 4
bootstrap Voir le fichier

@ -3,10 +3,10 @@
%% ex: ft=erlang ts=4 sw=4 et
main(_) ->
application:start(crypto),
application:start(asn1),
application:start(public_key),
application:start(ssl),
ensure_app(crypto),
ensure_app(asn1),
ensure_app(public_key),
ensure_app(ssl),
inets:start(),
inets:start(httpc, [{profile, rebar}]),
set_httpc_options(),
@ -57,6 +57,17 @@ main(_) ->
%% Done with compile, can turn back on error logger
error_logger:tty(true).
ensure_app(App) ->
case application:start(App) of
ok ->
ok;
{error, _} ->
io:format("OTP Application ~p not available. Please fix "
"your Erlang install to support it and try "
"again.~n", [App]),
halt(1)
end.
fetch_and_compile({Name, ErlFirstFiles}, Deps) ->
case lists:keyfind(Name, 1, Deps) of
{Name, Vsn} ->

Chargement…
Annuler
Enregistrer