summaryrefslogtreecommitdiff
path: root/src/rebar_prv_install_deps.erl
diff options
context:
space:
mode:
authorTristan Sloughter <tristan.sloughter@gmail.com>2014-12-24 13:09:27 -0600
committerTristan Sloughter <tristan.sloughter@gmail.com>2014-12-24 13:09:27 -0600
commit1800ed481e580e8031c817762c0d7fe28b41c2d8 (patch)
tree39f1946db83a747492dfa1009fbadef459026fae /src/rebar_prv_install_deps.erl
parentfaeb3d3989d47fb8680fdef3a598ebc4fae62f65 (diff)
parent91d297cf8ac59849137d360b58c1dcd1a719e4a9 (diff)
Merge pull request #77 from tsloughter/master
update plugin install code
Diffstat (limited to 'src/rebar_prv_install_deps.erl')
-rw-r--r--src/rebar_prv_install_deps.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl
index 0ebc1cd..9561d8e 100644
--- a/src/rebar_prv_install_deps.erl
+++ b/src/rebar_prv_install_deps.erl
@@ -357,7 +357,7 @@ maybe_fetch(AppInfo, Update, Seen) ->
-spec parse_deps(binary(), list()) -> {[rebar_app_info:t()], [pkg_dep()]}.
parse_deps(DepsDir, Deps) ->
- lists:foldl(fun({Name, Vsn}, {SrcDepsAcc, PkgDepsAcc}) ->
+ lists:foldl(fun({Name, Vsn}, {SrcDepsAcc, PkgDepsAcc}) when is_list(Vsn) ->
{SrcDepsAcc, [parse_goal(ec_cnv:to_binary(Name)
,ec_cnv:to_binary(Vsn)) | PkgDepsAcc]};
(Name, {SrcDepsAcc, PkgDepsAcc}) when is_atom(Name) ->
@@ -365,6 +365,9 @@ parse_deps(DepsDir, Deps) ->
({Name, Source}, {SrcDepsAcc, PkgDepsAcc}) when is_tuple (Source) ->
Dep = new_dep(DepsDir, Name, [], Source),
{[Dep | SrcDepsAcc], PkgDepsAcc};
+ ({Name, Source}, {SrcDepsAcc, PkgDepsAcc}) when is_tuple (Source) ->
+ Dep = new_dep(DepsDir, Name, [], Source),
+ {[Dep | SrcDepsAcc], PkgDepsAcc};
({Name, _Vsn, Source}, {SrcDepsAcc, PkgDepsAcc}) when is_tuple (Source) ->
Dep = new_dep(DepsDir, Name, [], Source),
{[Dep | SrcDepsAcc], PkgDepsAcc};