summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-05-09 21:03:02 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-05-09 21:03:02 -0400
commit734d4b84aa36d6341311afd44a6458c1aaa2da3a (patch)
tree61d41ca99109f6a1c5c2e455adc787e06abd26c4 /src
parent7dc79f9d30ea81bd71a0472eb82d5916926e44dc (diff)
parentfd4b5f5f2fec621a411ebe24e5684e8ef607a3ed (diff)
Merge pull request #412 from tsloughter/master
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.