summaryrefslogtreecommitdiff
path: root/src/rebar_app_utils.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-08-30 08:52:54 +1200
committerFred Hebert <mononcqc@ferd.ca>2015-08-30 08:52:54 +1200
commitcaf8ff31d8edfd1cbe022d4ed173a399afd67c0f (patch)
tree6bd4c334ecc80bfc33909372bdee0162ea0b5aae /src/rebar_app_utils.erl
parent5746965760b40bbf8739a9777fcd05c7f88b3f59 (diff)
parentaf395c5bca239cab83e300ffc487daf6f8aba987 (diff)
Merge pull request #759 from tsloughter/dep_tree_fix
set parent on already fetched apps so tree works
Diffstat (limited to 'src/rebar_app_utils.erl')
-rw-r--r--src/rebar_app_utils.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_app_utils.erl b/src/rebar_app_utils.erl
index 88b75ac..a7c78f5 100644
--- a/src/rebar_app_utils.erl
+++ b/src/rebar_app_utils.erl
@@ -165,7 +165,7 @@ dep_to_app(Parent, DepsDir, Name, Vsn, Source, IsLock, State) ->
Dir = ec_cnv:to_list(filename:join(DepsDir, Name)),
case rebar_app_info:discover(Dir) of
{ok, App} ->
- {ok, App};
+ {ok, rebar_app_info:parent(App, Parent)};
not_found ->
rebar_app_info:new(Parent, Name, Vsn, Dir, [])
end