From 926e550f3b7e54b70ba553bb5aef7c3e2932272a Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 14 Nov 2014 20:09:20 -0600 Subject: update package index fetching --- src/rebar_prv_update.erl | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/rebar_prv_update.erl') 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, "&"). -- cgit v1.1