diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2016-06-22 12:44:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-22 12:44:17 -0400 |
commit | feed75ca91423be8eaf49e1db57a5ef605238aed (patch) | |
tree | 4cfdb045ad1f8eab45a583a95ad297edfc444f51 /src/rebar_prv_install_deps.erl | |
parent | 4fd419528186cb399f5cbeec7051afa89e7bbf3c (diff) | |
parent | 71df9bf1411c04e2f7dae7e9f0352180664b9365 (diff) |
Merge pull request #1207 from ferd/pkg-local-hash-lock
lock file contains expected hash for pkg dependencies
Diffstat (limited to 'src/rebar_prv_install_deps.erl')
-rw-r--r-- | src/rebar_prv_install_deps.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl index 5e6aa4c..a8a7ea0 100644 --- a/src/rebar_prv_install_deps.erl +++ b/src/rebar_prv_install_deps.erl @@ -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. |