summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJess Balint <jbalint@gmail.com>2015-09-17 19:07:16 -0500
committerJess Balint <jbalint@gmail.com>2015-09-17 19:07:16 -0500
commit731916870d93141da35278ad4f5fe4c46072fdde (patch)
tree0286c78fe2e430fa3e19c43e4468f8a6590abe89 /src
parent19fbaa0a610bb0cb470d2922f1adc30cbbe719eb (diff)
Fix parsing of version #'s of dependencies
Version #'s with patch info like "1.1.1-x" would cause an error. Now tokenize the version string with "." AND "-".
Diffstat (limited to 'src')
-rw-r--r--src/rebar_pkg_resource.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_pkg_resource.erl b/src/rebar_pkg_resource.erl
index f456587..6524d90 100644
--- a/src/rebar_pkg_resource.erl
+++ b/src/rebar_pkg_resource.erl
@@ -176,7 +176,7 @@ check_ssl_version() ->
end.
parse_vsn(Vsn) ->
- version_pad(string:tokens(Vsn, ".")).
+ version_pad(string:tokens(Vsn, ".-")).
version_pad([Major]) ->
{list_to_integer(Major), 0, 0};