diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-04-24 22:24:42 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-04-24 22:27:09 -0500 |
commit | 164cff406335cf6aebfe6d30bc95e85c0d0915d1 (patch) | |
tree | 40a1f40131581d17fab11bd4fb36f0c75ecfdef2 /src/rebar_prv_install_deps.erl | |
parent | b0fc3aeb2ef7893cc45087f29658e8e25a31ae60 (diff) |
read in application details into app_info after fetch
Diffstat (limited to 'src/rebar_prv_install_deps.erl')
-rw-r--r-- | src/rebar_prv_install_deps.erl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl index 0fa843f..5598381 100644 --- a/src/rebar_prv_install_deps.erl +++ b/src/rebar_prv_install_deps.erl @@ -396,7 +396,7 @@ maybe_fetch(AppInfo, Profile, Upgrade, Seen, State) -> case fetch_app(AppInfo, AppDir, State) of true -> maybe_symlink_default(State, Profile, AppDir, AppInfo), - {true, AppInfo}; + {true, update_app_info(AppInfo)}; Other -> {Other, AppInfo} end; @@ -563,6 +563,15 @@ fetch_app(AppInfo, AppDir, State) -> Result end. +update_app_info(AppInfo) -> + AppDetails = rebar_app_info:app_details(AppInfo), + Applications = proplists:get_value(applications, AppDetails, []), + IncludedApplications = proplists:get_value(included_applications, AppDetails, []), + AppInfo1 = rebar_app_info:applications( + rebar_app_info:app_details(AppInfo, AppDetails), + IncludedApplications++Applications), + rebar_app_info:valid(AppInfo1, false). + maybe_upgrade(AppInfo, AppDir, false, State) -> Source = rebar_app_info:source(AppInfo), rebar_fetch:needs_update(AppDir, Source, State); |