deps: add new clause of format_source function

Function format_source in rebar_deps.erl will fail on sources
like {rsync, Path} or {hg, URL} in rebar.config.
Add new function clause to match such source types.
This commit is contained in:
Pavel Baturko 2014-10-10 00:18:58 +04:00
parent 71aedb8674
commit 5d89a93db2
2 changed files with 4 additions and 1 deletions

1
THANKS
View file

@ -128,3 +128,4 @@ Alexander Verbitsky
Andras Horvath
Drew Varner
Roberto Aloi
Pavel Baturko

View file

@ -816,5 +816,7 @@ format_source(App, {git, Url, {tag, Tag}}) ->
?FMT("~p TAG ~s ~s", [App, Tag, Url]);
format_source(App, {_, Url, Rev}) ->
?FMT("~p REV ~s ~s", [App, Rev, Url]);
format_source(App, {SrcType, Url}) ->
?FMT("~p ~p ~s", [App, SrcType, Url]);
format_source(App, undefined) ->
?FMT("~p", [App]).