浏览代码

Fetch hashes from index prior to fetching

pull/1207/head
Fred Hebert 9 年前
父节点
当前提交
9a7ede0196
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. +8
    -1
      src/rebar_app_utils.erl

+ 8
- 1
src/rebar_app_utils.erl 查看文件

@ -182,7 +182,14 @@ update_source(AppInfo, {pkg, PkgName, PkgVsn, Hash}, State) ->
_ ->
{PkgName, PkgVsn}
end,
AppInfo1 = rebar_app_info:source(AppInfo, {pkg, PkgName1, PkgVsn1, Hash}),
%% store the expected hash for the dependency
Hash1 = case Hash of
undefined -> % unknown, define the hash since we know the dep
rebar_packages:registry_checksum({pkg, PkgName1, PkgVsn1, Hash}, State);
_ -> % keep as is
Hash
end,
AppInfo1 = rebar_app_info:source(AppInfo, {pkg, PkgName1, PkgVsn1, Hash1}),
Deps = rebar_packages:deps(PkgName1
,PkgVsn1
,State),

正在加载...
取消
保存