diff options
author | Fred Hebert <[email protected]> | 2017-11-01 15:42:25 -0400 |
---|---|---|
committer | Fred Hebert <[email protected]> | 2017-11-01 15:42:25 -0400 |
commit | 78561dc7a812466aa1e8c9f36a6b48c7f7cc4195 (patch) | |
tree | 1fafc553a051ccce69c6949d882e5c678606ebbc /src/rlx_release.erl | |
parent | 7e78c133c7a373384411d9fd0e1366b14e4c31d8 (diff) | |
download | relx-78561dc7a812466aa1e8c9f36a6b48c7f7cc4195.tar.gz relx-78561dc7a812466aa1e8c9f36a6b48c7f7cc4195.tar.bz2 relx-78561dc7a812466aa1e8c9f36a6b48c7f7cc4195.zip |
Maintain no_dot_erlang.boot file in releases
Had a problem in OTP-21 (master) where escript calls in nodetool would
fail since the file is not around and is being used by default there.
The patch works by copying its equivalent file, which I belive to be
just the start_clean file (their .rel.src are identical), into the same
directories as we do for start_clean.
Internal errors are renamed to be made neutral.
Diffstat (limited to 'src/rlx_release.erl')
-rw-r--r-- | src/rlx_release.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rlx_release.erl b/src/rlx_release.erl index 5765079..f2a1c35 100644 --- a/src/rlx_release.erl +++ b/src/rlx_release.erl @@ -39,6 +39,7 @@ realized/1, metadata/1, start_clean_metadata/1, + no_dot_erlang_metadata/1, canonical_name/1, config/1, config/2, @@ -198,6 +199,12 @@ start_clean_metadata(#release_t{name=Name, vsn=Vsn, erts=ErtsVsn, applications=A ?RLX_ERROR({not_realized, Name, Vsn}) end. +%% The no_dot_erlang.rel.src file is a literal copy of start_clean.rel.src +%% in Erlang/OTP itself. +-spec no_dot_erlang_metadata(t()) -> term(). +no_dot_erlang_metadata(T) -> + start_clean_metadata(T). + %% @doc produce the canonical name (<name>-<vsn>) for this release -spec canonical_name(t()) -> string(). canonical_name(#release_t{name=Name, vsn=Vsn}) -> |