diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-11-14 20:09:20 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-11-15 09:21:11 -0600 |
commit | 926e550f3b7e54b70ba553bb5aef7c3e2932272a (patch) | |
tree | 3862625d705753917509ddc0357357c6ef4fc843 | |
parent | 4c8db4e047c8a6bda12534fb82562ff6b6c11d1f (diff) |
update package index fetching
-rw-r--r-- | src/rebar_prv_update.erl | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/rebar_prv_update.erl b/src/rebar_prv_update.erl index e57f19d..4751e05 100644 --- a/src/rebar_prv_update.erl +++ b/src/rebar_prv_update.erl @@ -55,13 +55,8 @@ format_error(package_index_write) -> "Failed to write package index.". url(State) -> - SystemArch = erlang:system_info(system_architecture), ErtsVsn = erlang:system_info(version), - {glibc, GlibcVsn, _, _} = erlang:system_info(allocator), - GlibcVsnStr = io_lib:format("~p.~p", GlibcVsn), - Qs = [io_lib:format("~s=~s", [X, Y]) || {X, Y} <- [{"arch", SystemArch} - ,{"erts", ErtsVsn} - ,{"glibc", GlibcVsnStr}]], - Url = rebar_state:get(State, rebar_packages_url, "http://polar-caverns-6802.herokuapp.com"), + Qs = [io_lib:format("~s=~s", [X, Y]) || {X, Y} <- [{"erts", ErtsVsn}]], + Url = rebar_state:get(State, rebar_packages_url, "http://packages.rebar3.org/packages"), Url ++ "?" ++ string:join(Qs, "&"). |