From f5527de4e1d5fadce619217db11727c4cb712b72 Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Sun, 10 May 2015 01:50:16 +0000 Subject: Further restricting skipped deps warnings --- src/rebar_prv_install_deps.erl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl index b5358ad..bc0a113 100644 --- a/src/rebar_prv_install_deps.erl +++ b/src/rebar_prv_install_deps.erl @@ -304,11 +304,10 @@ update_seen_src_dep(AppInfo, Profile, Level, SrcDeps, PkgDeps, SrcApps, State, U Name = rebar_app_info:name(AppInfo), %% If seen from lock file or user requested an upgrade %% don't print warning about skipping - case lists:keymember(Name, 1, BaseLocks) orelse Upgrade of - false -> - warn_skip_deps(AppInfo, State); - true -> - ok + case lists:keymember(Name, 1, BaseLocks) of + false when Upgrade -> ok; + false when not Upgrade -> warn_skip_deps(AppInfo, State); + true -> ok end, %% scan for app children here if upgrading case Upgrade of -- cgit v1.1