|
|
@ -352,10 +352,14 @@ make_relative_to_root(State, Path) when is_list(Path) -> |
|
|
|
rebar_dir:make_relative_path(Path, Root). |
|
|
|
|
|
|
|
fetch_app(AppInfo, AppDir, State) -> |
|
|
|
?INFO("Fetching ~s (~p)", [rebar_app_info:name(AppInfo), rebar_app_info:source(AppInfo)]), |
|
|
|
?INFO("Fetching ~s (~p)", [rebar_app_info:name(AppInfo), |
|
|
|
format_source(rebar_app_info:source(AppInfo))]), |
|
|
|
Source = rebar_app_info:source(AppInfo), |
|
|
|
true = rebar_fetch:download_source(AppDir, Source, State). |
|
|
|
|
|
|
|
format_source({pkg, Name, Vsn, _Hash}) -> {pkg, Name, Vsn}; |
|
|
|
format_source(Source) -> Source. |
|
|
|
|
|
|
|
%% This is called after the dep has been downloaded and unpacked, if it hadn't been already. |
|
|
|
%% So this is the first time for newly downloaded apps that its .app/.app.src data can |
|
|
|
%% be read in an parsed. |
|
|
|