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

3
THANKS
View file

@ -127,4 +127,5 @@ alisdair sullivan
Alexander Verbitsky Alexander Verbitsky
Andras Horvath Andras Horvath
Drew Varner Drew Varner
Roberto Aloi 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]); ?FMT("~p TAG ~s ~s", [App, Tag, Url]);
format_source(App, {_, Url, Rev}) -> format_source(App, {_, Url, Rev}) ->
?FMT("~p REV ~s ~s", [App, Rev, Url]); ?FMT("~p REV ~s ~s", [App, Rev, Url]);
format_source(App, {SrcType, Url}) ->
?FMT("~p ~p ~s", [App, SrcType, Url]);
format_source(App, undefined) -> format_source(App, undefined) ->
?FMT("~p", [App]). ?FMT("~p", [App]).