Skip to content

Commit

Permalink
fix strings in deps
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed May 15, 2014
1 parent 3df889f commit a4a1bc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mad_deps.erl
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ build_dep(Cwd, Conf, _ConfFile, Publisher, Name, _Cmd, _Co, Dir) ->

%% internal
-spec name_and_repo(dependency()) -> {string(), repo()}.
name_and_repo({Name, _, Repo}) when is_list(Name) -> {Name, Repo};
name_and_repo({Name, _, Repo, _}) when is_list(Name) -> {Name, Repo};
name_and_repo({Name, _, Repo}) -> {atom_to_list(Name), Repo};
name_and_repo({Name, _, Repo, _}) -> {atom_to_list(Name), Repo};
name_and_repo(Name) -> {Name,Name}.
Expand Down

0 comments on commit a4a1bc8

Please sign in to comment.