diff options
Diffstat (limited to 'src/rebar_pkg_resource.erl')
-rw-r--r-- | src/rebar_pkg_resource.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar_pkg_resource.erl b/src/rebar_pkg_resource.erl index 1590458..5cd6fc8 100644 --- a/src/rebar_pkg_resource.erl +++ b/src/rebar_pkg_resource.erl @@ -6,7 +6,8 @@ -export([lock/2 ,download/2 - ,needs_update/2]). + ,needs_update/2 + ,make_vsn/1]). -include("rebar.hrl"). @@ -26,3 +27,6 @@ download(Dir, {pkg, _Name, _Vsn, Url}) -> TmpFile = filename:join(Dir, "package.tar.gz"), {ok, saved_to_file} = httpc:request(get, {binary_to_list(Url), []}, [], [{stream, TmpFile}]), {tarball, TmpFile}. + +make_vsn(_) -> + {error, "Replacing version of type pkg not supported."}. |