aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_prv_release.erl
diff options
context:
space:
mode:
authorFred Hebert <[email protected]>2017-11-01 15:40:09 -0400
committerFred Hebert <[email protected]>2017-11-01 15:40:09 -0400
commit7e78c133c7a373384411d9fd0e1366b14e4c31d8 (patch)
treeb15f294821ce2bcddf14f97cbae0e50beabebb57 /src/rlx_prv_release.erl
parentfb91587091ad8a9da7c22598e962d0f21dcc17ee (diff)
downloadrelx-7e78c133c7a373384411d9fd0e1366b14e4c31d8.tar.gz
relx-7e78c133c7a373384411d9fd0e1366b14e4c31d8.tar.bz2
relx-7e78c133c7a373384411d9fd0e1366b14e4c31d8.zip
Support OTP-20 Unicode functions
Use either optional compilation or version-safe variants of the string functions. Prevents warnings when the switch to OTP-21 will happen.
Diffstat (limited to 'src/rlx_prv_release.erl')
-rw-r--r--src/rlx_prv_release.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlx_prv_release.erl b/src/rlx_prv_release.erl
index 2af8acd..8de1a51 100644
--- a/src/rlx_prv_release.erl
+++ b/src/rlx_prv_release.erl
@@ -202,7 +202,7 @@ set_resolved(State, Release0, Pkgs) ->
ErtsDir ->
try
[Erts | _] = filelib:wildcard(filename:join(ErtsDir, "erts-*")),
- [_, ErtsVsn] = string:tokens(filename:basename(Erts), "-"),
+ [_, ErtsVsn] = rlx_string:lexemes(filename:basename(Erts), "-"),
{ok, rlx_state:add_realized_release(State, rlx_release:erts(Release1, ErtsVsn))}
catch
_:_ ->