diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-11-03 11:41:47 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-11-03 11:41:47 -0600 |
commit | a7bd7a3e1c9a31e6395a1a56e3815634f84e15ed (patch) | |
tree | cb0c806c6ad483f71c92ca87fc9572541244efec /src/rebar_pkg_resource.erl | |
parent | f873510025924d662b2adde880f951b8787ded1d (diff) |
add make_vsn to rebar_resource for replacing app vsns
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."}. |