diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2015-06-12 12:56:20 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2015-06-12 12:56:20 +0200 |
commit | 54a724238f63aeaf59542c7dc7baeaf569e3fd0d (patch) | |
tree | 69af9cf3c9e1c45cc947c097ff7551970318a5f8 | |
parent | 8ec3a55bd5240adef9ae0527509d6a77beb8a37e (diff) | |
download | rebar-54a724238f63aeaf59542c7dc7baeaf569e3fd0d.tar.gz |
rebar_utils: rename internal function
-rw-r--r-- | src/rebar_utils.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index b250671..9681756 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -405,15 +405,15 @@ patch_env(Config, [E | Rest]) -> %% ==================================================================== otp_release() -> - rmemo:call(fun otp_release1/1, [(erlang:system_info(otp_release))]). + rmemo:call(fun otp_release_1/1, [(erlang:system_info(otp_release))]). %% If OTP <= R16, otp_release is already what we want. -otp_release1([$R,N|_]=Rel) when is_integer(N) -> +otp_release_1([$R,N|_]=Rel) when is_integer(N) -> Rel; %% If OTP >= 17.x, erlang:system_info(otp_release) returns just the %% major version number, we have to read the full version from %% a file. See http://www.erlang.org/doc/system_principles/versions.html -otp_release1(Rel) -> +otp_release_1(Rel) -> Files = [ filename:join([code:root_dir(), "releases", Rel, "OTP_VERSION"]), filename:join([code:root_dir(), "OTP_VERSION"]) |