Browse Source

fix strings in deps

Maxim Sokhatsky 11 years ago
parent
commit
a4a1bc8ed8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/mad_deps.erl

+ 2 - 0
src/mad_deps.erl

@@ -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}.