diff options
author | Jess Balint <jbalint@gmail.com> | 2015-09-17 19:07:16 -0500 |
---|---|---|
committer | Jess Balint <jbalint@gmail.com> | 2015-09-17 19:07:16 -0500 |
commit | 731916870d93141da35278ad4f5fe4c46072fdde (patch) | |
tree | 0286c78fe2e430fa3e19c43e4468f8a6590abe89 /src | |
parent | 19fbaa0a610bb0cb470d2922f1adc30cbbe719eb (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.erl | 2 |
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}; |