summaryrefslogtreecommitdiff
path: root/src/rebar_prv_install_deps.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-04-11 17:05:15 -0500
committerTristan Sloughter <t@crashfast.com>2015-04-11 17:05:15 -0500
commit4ee7fef913977add95460544a25e4f8ceb803fb0 (patch)
treec96db88a0a77c2d0d2df7b89cfd03f1d8d8ab4ae /src/rebar_prv_install_deps.erl
parent41b95eb295c2e4c76dbea4c26dee2d73180d5b74 (diff)
store registry fetched from disk in state
Diffstat (limited to 'src/rebar_prv_install_deps.erl')
-rw-r--r--src/rebar_prv_install_deps.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl
index 57cd05f..bf20a2e 100644
--- a/src/rebar_prv_install_deps.erl
+++ b/src/rebar_prv_install_deps.erl
@@ -134,7 +134,8 @@ handle_deps(_Profile, State, [], _, _) ->
handle_deps(Profile, State0, Deps, Upgrade, Locks) ->
%% Read in package index and dep graph
{Packages, Graph} = rebar_state:packages(State0),
- State = rebar_state:packages(State0, {Packages, Graph}),
+ Registry = rebar_packages:registry(State0),
+ State = rebar_state:packages(rebar_state:registry(State0, Registry), {Packages, Graph}),
%% Split source deps from pkg deps, needed to keep backwards compatibility
DepsDir = rebar_dir:deps_dir(State),
{SrcDeps, PkgDeps} = parse_deps(DepsDir, Deps, State, Locks, 0),
@@ -573,7 +574,7 @@ not_needs_compile(App) ->
andalso rebar_app_info:valid(App).
get_package(Dep, State) ->
- case rebar_packages:registry(State) of
+ case rebar_state:registry(State) of
{ok, T} ->
HighestDepVsn = rebar_packages:find_highest_matching(Dep, "0", T),
{Dep, HighestDepVsn};