summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-03-17 13:37:03 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-03-17 13:37:03 -0400
commita7d70074ffdbe802655d0cf471ae05b4a3d4f55f (patch)
tree5c539a10208a86507cbc855b6c67e7368f789f9d
parentc38e50136d0890235814e84d08e8589c505f6658 (diff)
parentb4986925e83c521720f94d16d9f016248a91892e (diff)
Merge pull request #280 from tsloughter/pkgdeps
include all pkg deps in list of deps returned from update
-rw-r--r--src/rebar_prv_install_deps.erl9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl
index 59acb54..15fdd0a 100644
--- a/src/rebar_prv_install_deps.erl
+++ b/src/rebar_prv_install_deps.erl
@@ -210,13 +210,8 @@ handle_pkg_dep(Profile, Pkg, Packages, Upgrade, DepsDir, Fetched, Seen, State) -
AppInfo = package_to_app(DepsDir, Packages, Pkg),
Level = rebar_app_info:dep_level(AppInfo),
{NewSeen, NewState} = maybe_lock(Profile, AppInfo, Seen, State, Level),
- case maybe_fetch(AppInfo, Upgrade, Seen, NewState) of
- true ->
- {[AppInfo | Fetched], NewSeen, NewState};
- false ->
- {Fetched, NewSeen, NewState}
- end.
-
+ maybe_fetch(AppInfo, Upgrade, Seen, NewState),
+ {[AppInfo | Fetched], NewSeen, NewState}.
maybe_lock(Profile, AppInfo, Seen, State, Level) ->
case Profile of