From 5d89a93db201a1e0fe2f79c8c6f71e5eba3b8962 Mon Sep 17 00:00:00 2001 From: Pavel Baturko Date: Fri, 10 Oct 2014 00:18:58 +0400 Subject: [PATCH] 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. --- THANKS | 3 ++- src/rebar_deps.erl | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/THANKS b/THANKS index 9b9a448..b3d00f6 100644 --- a/THANKS +++ b/THANKS @@ -127,4 +127,5 @@ alisdair sullivan Alexander Verbitsky Andras Horvath Drew Varner -Roberto Aloi \ No newline at end of file +Roberto Aloi +Pavel Baturko \ No newline at end of file diff --git a/src/rebar_deps.erl b/src/rebar_deps.erl index bd94921..952276c 100644 --- a/src/rebar_deps.erl +++ b/src/rebar_deps.erl @@ -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]).