aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reltool/src/reltool_target.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-06-28 16:48:17 +0200
committerSiri Hansen <[email protected]>2017-07-06 17:53:23 +0200
commit4f3289a5d3b3ddd08d6e8a42909634b38d7d2a5a (patch)
treed5ee2abd6a845a102e4f56d13ff024714a90cc15 /lib/reltool/src/reltool_target.erl
parentabb8e79663d0527f2987d1d7e914c65117b396a9 (diff)
downloadotp-4f3289a5d3b3ddd08d6e8a42909634b38d7d2a5a.tar.gz
otp-4f3289a5d3b3ddd08d6e8a42909634b38d7d2a5a.tar.bz2
otp-4f3289a5d3b3ddd08d6e8a42909634b38d7d2a5a.zip
reltool: Do not use deprecated functions in string(3)
Diffstat (limited to 'lib/reltool/src/reltool_target.erl')
-rw-r--r--lib/reltool/src/reltool_target.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/reltool/src/reltool_target.erl b/lib/reltool/src/reltool_target.erl
index 1615a3e9b7..3917dc874f 100644
--- a/lib/reltool/src/reltool_target.erl
+++ b/lib/reltool/src/reltool_target.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2009-2016. All Rights Reserved.
+%% Copyright Ericsson AB 2009-2017. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -1448,7 +1448,7 @@ do_install(RelName, TargetDir) ->
RelDir = filename:join([TargetDir2, "releases"]),
DataFile = filename:join([RelDir, "start_erl.data"]),
Bin = reltool_utils:read_file(DataFile),
- case string:tokens(binary_to_list(Bin), " \n") of
+ case string:lexemes(binary_to_list(Bin), " \n") of
[ErlVsn, RelVsn | _] ->
ErtsBinDir = filename:join([TargetDir2, "erts-" ++ ErlVsn, "bin"]),
BinDir = filename:join([TargetDir2, "bin"]),