From f45387f7955d497bfd3f1e5d4b0ad845669d7d92 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 17 Jan 2015 10:36:13 -0600 Subject: no skip warning for seen dep that has locked version --- src/rebar_prv_install_deps.erl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl index 1253edd..2247277 100644 --- a/src/rebar_prv_install_deps.erl +++ b/src/rebar_prv_install_deps.erl @@ -230,9 +230,16 @@ package_to_app(DepsDir, Packages, {Name, Vsn}) -> update_src_deps(Profile, Level, SrcDeps, PkgDeps, SrcApps, State, Update, Seen, Locks) -> case lists:foldl(fun(AppInfo, {SrcDepsAcc, PkgDepsAcc, SrcAppsAcc, StateAcc, SeenAcc, LocksAcc}) -> %% If not seen, add to list of locks to write out - case sets:is_element(rebar_app_info:name(AppInfo), SeenAcc) of + Name = rebar_app_info:name(AppInfo), + case sets:is_element(Name, SeenAcc) of true -> - warn_skip_deps(AppInfo), + %% If from lock file don't print warning about skipping + case lists:keymember(Name, 1, Locks) of + false -> + warn_skip_deps(AppInfo); + true -> + ok + end, {SrcDepsAcc, PkgDepsAcc, SrcAppsAcc, StateAcc, SeenAcc, LocksAcc}; false -> {SeenAcc1, StateAcc1} = maybe_lock(Profile, AppInfo, SeenAcc, StateAcc, Level), -- cgit v1.1