summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-05-22 19:45:48 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-05-22 19:45:48 -0400
commitb4786b804c8b31a220e9daea753bd0ec3f7a62dd (patch)
tree31404932cbb3e220f99c3510e49ff0a3576fb578 /test
parent5f577e2ab15d0aa3b6650f4e3d1ee086be3dc736 (diff)
parente45c67b023e310bd60de88f07f9429d66d18d4b0 (diff)
Merge pull request #471 from tsloughter/master
fall back to .app.src file if .app file fails to parse
Diffstat (limited to 'test')
-rw-r--r--test/mock_pkg_resource.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/mock_pkg_resource.erl b/test/mock_pkg_resource.erl
index e94ea93..9ed0962 100644
--- a/test/mock_pkg_resource.erl
+++ b/test/mock_pkg_resource.erl
@@ -151,15 +151,14 @@ find_parts([{AppName, Deps}|Rest], Skip, Acc) ->
true -> find_parts(Rest, Skip, Acc);
false ->
AccNew = dict:store(AppName,
- [{<<"deps">>,Deps}, {<<"link">>,<<"undef">>}],
+ Deps,
Acc),
find_parts(Rest, Skip, AccNew)
end.
to_graph_parts(Dict) ->
LastUpdated = os:timestamp(),
- dict:fold(fun(K,V,{Ks,Vs}) ->
- {_,Deps} = lists:keyfind(<<"deps">>, 1, V),
+ dict:fold(fun(K,Deps,{Ks,Vs}) ->
{[{K,LastUpdated}|Ks],
[{K,{list_to_binary(atom_to_list(DK)), list_to_binary(DV)}}
|| {DK,DV} <- Deps] ++ Vs}