Skip to content

Commit 49bae1f

Browse files
committed
missed case in mapdeps.erl
1 parent 93767a1 commit 49bae1f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

misc/mapdeps.erl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,12 @@ map_rebar(BaseDir, Path, Acc) ->
8585
{ok, Opts} ->
8686
Deps = proplists:get_value(deps, Opts, []),
8787
lists:foldl(
88-
fun({DepName, _, {_,_,V} }, A) ->
88+
fun({DepName, _, Info}, A) ->
89+
VerStr = case Info of
90+
{_,_,V} -> ver(V);
91+
{_,_V} -> "HEAD"
92+
end,
8993
From = app_name(Path),
90-
VerStr = ver(V),
9194
To = {atom_to_list(DepName), VerStr},
9295
case ordsets:is_element({To, From}, A) of
9396
true ->

0 commit comments

Comments
 (0)