Browse Source

Read dependencies of the form {Name, Version}

Only the names are useful for now since we can ignore these dependencies
if they've already been fetched
Rudi Grinberg 10 years ago
parent
commit
0ebfc294cd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/mad_deps.erl

+ 2 - 0
src/mad_deps.erl

@@ -82,6 +82,8 @@ 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, Version}) when is_list(Name) -> {Name, Version};
+name_and_repo({Name, Version}) -> {atom_to_list(Name), Version};
 name_and_repo(Name) -> {Name,Name}.
 
 get_publisher(Uri) ->