diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2015-03-17 13:37:03 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2015-03-17 13:37:03 -0400 |
commit | a7d70074ffdbe802655d0cf471ae05b4a3d4f55f (patch) | |
tree | 5c539a10208a86507cbc855b6c67e7368f789f9d | |
parent | c38e50136d0890235814e84d08e8589c505f6658 (diff) | |
parent | b4986925e83c521720f94d16d9f016248a91892e (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.erl | 9 |
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 |