summaryrefslogtreecommitdiff
path: root/src/rebar_digraph.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-05-22 15:15:36 -0500
committerTristan Sloughter <t@crashfast.com>2015-05-22 18:12:26 -0500
commitf772dcee2e7082f3da4520043de888d5d68aa750 (patch)
treee827bf252845a0447191b017310c7886d9988a99 /src/rebar_digraph.erl
parent37ac2b78333d23abfa9274ce773eb620f5813657 (diff)
fix storing of pkg and src deps in app_info
Diffstat (limited to 'src/rebar_digraph.erl')
-rw-r--r--src/rebar_digraph.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_digraph.erl b/src/rebar_digraph.erl
index 9e10d49..7f7909e 100644
--- a/src/rebar_digraph.erl
+++ b/src/rebar_digraph.erl
@@ -125,5 +125,6 @@ find_app_by_name(Name, Apps) ->
end, Apps).
all_apps_deps(App) ->
- Applications = [atom_to_binary(X, utf8) || X <- rebar_app_info:applications(App)],
- lists:usort(rebar_app_info:deps(App) ++ Applications).
+ Applications = lists:usort([atom_to_binary(X, utf8) || X <- rebar_app_info:applications(App)]),
+ Deps = lists:usort(lists:map(fun({Name, _}) -> Name; (Name) -> Name end, rebar_app_info:deps(App))),
+ lists:umerge(Deps, Applications).