diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-10-17 14:28:07 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-10-17 14:28:07 -0500 |
commit | 4b7281effc83a359662d32d3ec840deadd2eaf22 (patch) | |
tree | ec1da9613dafb5816d97a07e0c52329b92e98eb4 | |
parent | 9f98bdde67c3f47068eb79f4ccb59a9c3c1514b2 (diff) |
fix update provider do/1 return
-rw-r--r-- | src/rebar_prv_update.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rebar_prv_update.erl b/src/rebar_prv_update.erl index 53402db..8ac4426 100644 --- a/src/rebar_prv_update.erl +++ b/src/rebar_prv_update.erl @@ -37,12 +37,13 @@ do(State) -> %{ok, [Home]} = init:get_argument(home), ec_file:mkdir_p(filename:join([os:getenv("HOME"), ".rebar"])), PackagesFile = filename:join([os:getenv("HOME"), ".rebar", "packages"]), - {ok, RequestId} = httpc:request(get, {Url, []}, [], [{stream, PackagesFile} - ,{sync, true}]) + {ok, _RequestId} = httpc:request(get, {Url, []}, [], [{stream, PackagesFile} + ,{sync, true}]) catch _:_ -> {error, io_lib:format("Failed to write package index.~n", [])} - end. + end, + {ok, State}. url(State) -> SystemArch = erlang:system_info(system_architecture), |