deps: remove undocumented fossil syntax

As discussed with Martin Schut, remove support for
{app_name, "vsn", {fossil, "url", latest}.
This commit is contained in:
Tuncer Ayaz 2013-11-26 20:16:35 +01:00
parent d7cef6b4c1
commit 79903b9eeb

View file

@ -546,8 +546,6 @@ download_source(AppDir, {rsync, Url}) ->
rebar_utils:sh(?FMT("rsync -az --delete ~s/ ~s", [Url, AppDir]), []); rebar_utils:sh(?FMT("rsync -az --delete ~s/ ~s", [Url, AppDir]), []);
download_source(AppDir, {fossil, Url}) -> download_source(AppDir, {fossil, Url}) ->
download_source(AppDir, {fossil, Url, ""}); download_source(AppDir, {fossil, Url, ""});
download_source(AppDir, {fossil, Url, latest}) ->
download_source(AppDir, {fossil, Url, ""});
download_source(AppDir, {fossil, Url, Version}) -> download_source(AppDir, {fossil, Url, Version}) ->
Repository = filename:join(AppDir, filename:basename(AppDir) ++ ".fossil"), Repository = filename:join(AppDir, filename:basename(AppDir) ++ ".fossil"),
ok = filelib:ensure_dir(Repository), ok = filelib:ensure_dir(Repository),
@ -603,8 +601,6 @@ update_source1(AppDir, {rsync, Url}) ->
rebar_utils:sh(?FMT("rsync -az --delete ~s/ ~s",[Url,AppDir]),[]); rebar_utils:sh(?FMT("rsync -az --delete ~s/ ~s",[Url,AppDir]),[]);
update_source1(AppDir, {fossil, Url}) -> update_source1(AppDir, {fossil, Url}) ->
update_source1(AppDir, {fossil, Url, ""}); update_source1(AppDir, {fossil, Url, ""});
update_source1(AppDir, {fossil, Url, latest}) ->
update_source1(AppDir, {fossil, Url, ""});
update_source1(AppDir, {fossil, _Url, Version}) -> update_source1(AppDir, {fossil, _Url, Version}) ->
ok = file:set_cwd(AppDir), ok = file:set_cwd(AppDir),
rebar_utils:sh("fossil pull", [{cd, AppDir}]), rebar_utils:sh("fossil pull", [{cd, AppDir}]),