summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rebar_prv_deps.erl2
-rw-r--r--src/rebar_prv_install_deps.erl37
2 files changed, 3 insertions, 36 deletions
diff --git a/src/rebar_prv_deps.erl b/src/rebar_prv_deps.erl
index c7d9cf7..bb8dc65 100644
--- a/src/rebar_prv_deps.erl
+++ b/src/rebar_prv_deps.erl
@@ -67,7 +67,7 @@ display_dep(_State, {Name, _Vsn, Source}) when is_tuple(Source), element(1, Sour
display_dep(_State, {Name, _Vsn, Source, _Opts}) when is_tuple(Source), element(1, Source) =:= git ->
?CONSOLE("~s* (git soutce)", [ec_cnv:to_binary(Name)]);
%% unknown source
-display_dep(_State, {Name, Source}) when is_tuple(Source), element(1, Source) ->
+display_dep(_State, {Name, Source}) when is_tuple(Source) ->
?CONSOLE("~s* (source ~p)", [ec_cnv:to_binary(Name), Source]);
display_dep(_State, {Name, _Vsn, Source}) when is_tuple(Source) ->
?CONSOLE("~s* (source ~p)", [ec_cnv:to_binary(Name), Source]);
diff --git a/src/rebar_prv_install_deps.erl b/src/rebar_prv_install_deps.erl
index 1e2a4e9..ab4cca1 100644
--- a/src/rebar_prv_install_deps.erl
+++ b/src/rebar_prv_install_deps.erl
@@ -61,8 +61,8 @@ init(State) ->
{bare, true},
{deps, ?DEPS},
{example, undefined},
- {short_desc, "Install dependencies"},
- {desc, info("Install dependencies")},
+ {short_desc, ""},
+ {desc, ""},
{opts, []}])),
{ok, State1}.
@@ -499,39 +499,6 @@ parse_goal(Name, Constraint) ->
fail
end.
-info(Description) ->
- io_lib:format("~s.~n"
- "~n"
- "Valid rebar.config options:~n"
- " ~p~n"
- " ~p~n",
- [
- Description,
- {deps_dir, "deps"},
- {deps,
- [app_name,
- {rebar, "1.0.*"},
- {rebar, ".*",
- {git, "git://github.com/rebar/rebar.git"}},
- {rebar, ".*",
- {git, "git://github.com/rebar/rebar.git", "Rev"}},
- {rebar, "1.0.*",
- {git, "git://github.com/rebar/rebar.git", {branch, "master"}}},
- {rebar, "1.0.0",
- {git, "git://github.com/rebar/rebar.git", {tag, "1.0.0"}}},
- {rebar, "",
- {git, "git://github.com/rebar/rebar.git", {branch, "master"}},
- [raw]},
- {app_name, ".*", {hg, "https://www.example.org/url"}},
- {app_name, ".*", {rsync, "Url"}},
- {app_name, ".*", {svn, "https://www.example.org/url"}},
- {app_name, ".*", {svn, "svn://svn.example.org/url"}},
- {app_name, ".*", {bzr, "https://www.example.org/url", "Rev"}},
- {app_name, ".*", {fossil, "https://www.example.org/url"}},
- {app_name, ".*", {fossil, "https://www.example.org/url", "Vsn"}},
- {app_name, ".*", {p4, "//depot/subdir/app_dir"}}]}
- ]).
-
warn_skip_deps(AppInfo) ->
?WARN("Skipping ~s (from ~p) as an app of the same name "
"has already been fetched~n",