diff options
author | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-08-21 08:51:42 -0500 |
---|---|---|
committer | Tristan Sloughter <tristan.sloughter@gmail.com> | 2015-08-21 08:51:42 -0500 |
commit | b52395f4aec11bacaace91ec72e100c9778d6098 (patch) | |
tree | 571b917f2681729f4f299c443066a233027a3d6b /src/rebar_prv_install_deps.erl | |
parent | e9cfbfb36b53d2fc6c7ca34bb49fe75fa112f770 (diff) | |
parent | 293dfb79d6181b77f866785b2a08d4ab767a5643 (diff) |
Merge pull request #728 from pvmart/master
fix leaking hex_registry table
Diffstat (limited to 'src/rebar_prv_install_deps.erl')
-rw-r--r-- | src/rebar_prv_install_deps.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl index 8fb3b47..3a5a7cd 100644 --- a/src/rebar_prv_install_deps.erl +++ b/src/rebar_prv_install_deps.erl @@ -186,7 +186,7 @@ handle_profile_pkg_level([], AllApps, _Seen, _Upgrade, _Locks, State) -> handle_profile_pkg_level(PkgDeps, AllApps, Seen, Upgrade, Locks, State) -> %% Read in package index and dep graph {Packages, Graph} = rebar_state:packages(State), - Registry = rebar_packages:registry(State), + Registry = rebar_state:registry(State), State1 = rebar_state:packages(rebar_state:registry(State, Registry) ,{Packages, Graph}), @@ -366,7 +366,8 @@ handle_dep(State, Profile, DepsDir, AppInfo, Locks, Level) -> Name = rebar_app_info:name(AppInfo), %% Deps may be under a sub project app, find it and use its state if so - S = rebar_app_info:state(AppInfo), + S0 = rebar_app_info:state(AppInfo), + S = rebar_state:registry(S0, rebar_state:registry(State)), C = rebar_config:consult(rebar_app_info:dir(AppInfo)), S1 = rebar_state:new(S, C, rebar_app_info:dir(AppInfo)), S2 = rebar_state:apply_overrides(S1, Name), |