diff options
author | Stuart Thackray <stuart.thackray@gmail.com> | 2018-12-18 10:39:46 +0200 |
---|---|---|
committer | Stuart Thackray <stuart.thackray@gmail.com> | 2018-12-18 10:39:46 +0200 |
commit | d9adc89cf43a83f545c9da9295d45184a412714b (patch) | |
tree | f2443cf31338acc29a6e6b32b835bbd69d14e88b | |
parent | d5d75c6da68366690414d82acd87b87f13cee212 (diff) |
Code documentation that the PR was for backwards compatility
-rw-r--r-- | src/rebar_git_resource.erl | 6 | ||||
-rw-r--r-- | src/rebar_hg_resource.erl | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/rebar_git_resource.erl b/src/rebar_git_resource.erl index cec7bfc..b2db6ca 100644 --- a/src/rebar_git_resource.erl +++ b/src/rebar_git_resource.erl @@ -6,11 +6,14 @@ -export([init/2, lock/2, - download/3, download/4, needs_update/2, make_vsn/2]). +%% For backward compatibilty +-export ([ download/3 + ]). + -include("rebar.hrl"). %% Regex used for parsing scp style remote url @@ -124,6 +127,7 @@ download(TmpDir, AppInfo, State, _) -> {error, Error} end. +%% For backward compatibilty download(Dir, AppInfo, State) -> download_(Dir, AppInfo, State). diff --git a/src/rebar_hg_resource.erl b/src/rebar_hg_resource.erl index 22532b5..763803c 100644 --- a/src/rebar_hg_resource.erl +++ b/src/rebar_hg_resource.erl @@ -6,11 +6,15 @@ -export([init/2, lock/2, - download/3, download/4, needs_update/2, make_vsn/2]). + +%% For backward compatibilty +-export([ download/3 + ]). + -include("rebar.hrl"). -spec init(atom(), rebar_state:t()) -> {ok, rebar_resource_v2:resource()}. @@ -73,6 +77,7 @@ download(TmpDir, AppInfo, State, _) -> {error, Error} end. +%% For backward compatibilty download(Dir, AppInfo, State) -> download_(Dir, AppInfo, State). |