mirror of
https://github.com/correl/rebar.git
synced 2024-11-27 11:09:55 +00:00
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:
parent
71aedb8674
commit
5d89a93db2
2 changed files with 4 additions and 1 deletions
1
THANKS
1
THANKS
|
@ -128,3 +128,4 @@ Alexander Verbitsky
|
||||||
Andras Horvath
|
Andras Horvath
|
||||||
Drew Varner
|
Drew Varner
|
||||||
Roberto Aloi
|
Roberto Aloi
|
||||||
|
Pavel Baturko
|
|
@ -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]).
|
||||||
|
|
Loading…
Reference in a new issue