summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-05-09 19:46:46 -0500
committerTristan Sloughter <t@crashfast.com>2015-05-09 19:51:21 -0500
commitfd4b5f5f2fec621a411ebe24e5684e8ef607a3ed (patch)
tree61d41ca99109f6a1c5c2e455adc787e06abd26c4 /src
parent7dc79f9d30ea81bd71a0472eb82d5916926e44dc (diff)
improve log messages on upgrades
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_install_deps.erl8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl
index 3fb2d71..b5358ad 100644
--- a/src/rebar_prv_install_deps.erl
+++ b/src/rebar_prv_install_deps.erl
@@ -302,8 +302,9 @@ profile_dep_dir(State, Profile) ->
update_seen_src_dep(AppInfo, Profile, Level, SrcDeps, PkgDeps, SrcApps, State, Upgrade, Seen, BaseLocks, Locks) ->
Name = rebar_app_info:name(AppInfo),
- %% If seen from lock file don't print warning about skipping
- case lists:keymember(Name, 1, BaseLocks) of
+ %% 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 ->
@@ -585,7 +586,7 @@ maybe_upgrade(AppInfo, AppDir, true, State) ->
Source = rebar_app_info:source(AppInfo),
case rebar_fetch:needs_update(AppDir, Source, State) of
true ->
- ?INFO("Updating ~s", [rebar_app_info:name(AppInfo)]),
+ ?INFO("Upgrading ~s", [rebar_app_info:name(AppInfo)]),
case rebar_fetch:download_source(AppDir, Source, State) of
{error, Reason} ->
throw(Reason);
@@ -593,6 +594,7 @@ maybe_upgrade(AppInfo, AppDir, true, State) ->
Result
end;
false ->
+ ?INFO("No upgrade needed for ~s", [rebar_app_info:name(AppInfo)]),
false
end.