summaryrefslogtreecommitdiff
path: root/src/rebar_prv_update.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-08-23 14:18:22 -0500
committerTristan Sloughter <t@crashfast.com>2014-08-23 14:18:22 -0500
commit5bb99b81db5f0b153282409d1fcf635b290e979f (patch)
tree7939b1f7cb6fda230f4707bc44292c8958757e3f /src/rebar_prv_update.erl
parentb37fe2c4bbe0e47399408f8feb59b5b0ab98a592 (diff)
switched package index to dict
Diffstat (limited to 'src/rebar_prv_update.erl')
-rw-r--r--src/rebar_prv_update.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_prv_update.erl b/src/rebar_prv_update.erl
index 78c7c34..a12f5b0 100644
--- a/src/rebar_prv_update.erl
+++ b/src/rebar_prv_update.erl
@@ -47,12 +47,12 @@ do(State) ->
State1 = rebar_state:replace_app(State, rebar_app_info:name(AppInfo1), AppInfo1),
rebar_erlc_compiler:compile(State, rebar_app_info:dir(AppInfo1)),
- %update_lock_file(State, AppInfo1, Source),
+ %update_lock_file(State, AppInfo1, Source),
- {ok, State};
+ {ok, State1};
[] ->
?INFO("Updating package index...", []),
- Url = rebar_state:get(State, rebar_packages_url, ""),
+ Url = rebar_state:get(State, rebar_packages_url, "http://localhost:8080"),
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, false}]),