diff options
author | Hans Bolinder <[email protected]> | 2017-06-28 16:48:17 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-07-06 17:53:23 +0200 |
commit | 4f3289a5d3b3ddd08d6e8a42909634b38d7d2a5a (patch) | |
tree | d5ee2abd6a845a102e4f56d13ff024714a90cc15 /lib/reltool/src/reltool_utils.erl | |
parent | abb8e79663d0527f2987d1d7e914c65117b396a9 (diff) | |
download | otp-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_utils.erl')
-rw-r--r-- | lib/reltool/src/reltool_utils.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/reltool/src/reltool_utils.erl b/lib/reltool/src/reltool_utils.erl index 60edc9f3ca..a413bd256a 100644 --- a/lib/reltool/src/reltool_utils.erl +++ b/lib/reltool/src/reltool_utils.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. @@ -55,7 +55,7 @@ root_dir() -> code:root_dir(). erl_libs() -> - string:tokens(os:getenv("ERL_LIBS", ""), ":;"). + string:lexemes(os:getenv("ERL_LIBS", ""), ":;"). lib_dirs(Dir) -> case erl_prim_loader:list_dir(Dir) of @@ -286,7 +286,7 @@ split_app_dir(Dir) -> {Name, Vsn} = split_app_name(Base), Vsn2 = try - [list_to_integer(N) || N <- string:tokens(Vsn, ".")] + [list_to_integer(N) || N <- string:lexemes(Vsn, ".")] catch _:_ -> Vsn |