summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_prv_install_deps.erl9
1 files 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