summaryrefslogtreecommitdiff
path: root/src/rebar_prv_update.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-11-14 20:09:20 -0600
committerTristan Sloughter <t@crashfast.com>2014-11-15 09:21:11 -0600
commit926e550f3b7e54b70ba553bb5aef7c3e2932272a (patch)
tree3862625d705753917509ddc0357357c6ef4fc843 /src/rebar_prv_update.erl
parent4c8db4e047c8a6bda12534fb82562ff6b6c11d1f (diff)
update package index fetching
Diffstat (limited to 'src/rebar_prv_update.erl')
-rw-r--r--src/rebar_prv_update.erl9
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, "&").