Skip to content

Commit c94bfaa

Browse files
committed
mapdeps.el: know about hex
1 parent 49bae1f commit c94bfaa

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

misc/mapdeps.erl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,16 @@ map_rebar(BaseDir, Path, Acc) ->
8585
{ok, Opts} ->
8686
Deps = proplists:get_value(deps, Opts, []),
8787
lists:foldl(
88-
fun({DepName, _, Info}, A) ->
89-
VerStr = case Info of
90-
{_,_,V} -> ver(V);
91-
{_,_V} -> "HEAD"
92-
end,
88+
fun(Dep, A) ->
89+
{DepName,VerStr} =
90+
case Dep of
91+
{N, {_,_,V}} -> {N, ver(V)};
92+
{N, {_,_} } -> {N, "HEAD"};
93+
{N, _, {_,_,V}} -> {N, ver(V)};
94+
{N, _, {_,_} } -> {N, "HEAD"};
95+
{N, _} when is_atom(N) -> {N, "'hex'"};
96+
N when is_atom(N) -> {N, "'hex'"}
97+
end,
9398
From = app_name(Path),
9499
To = {atom_to_list(DepName), VerStr},
95100
case ordsets:is_element({To, From}, A) of

0 commit comments

Comments
 (0)