From 6779517b5c68799a37656d13e50229fd70393c5d Mon Sep 17 00:00:00 2001 From: Stefan Grundmann Date: Mon, 17 Nov 2025 20:04:42 +0000 Subject: [PATCH] fix systool:make_relup/4 options in OTP27 specs where added to all public sasl functions, with this change, use of {silent, true} and 'no_warn_sasl' in Options violated the spec of systools:make_relup/4. replace '{silent, true}' with 'silent' and remore 'no_warn_sasl'. fix #958 --- src/rlx_relup.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rlx_relup.erl b/src/rlx_relup.erl index 0a1e0ce5d..334b79533 100644 --- a/src/rlx_relup.erl +++ b/src/rlx_relup.erl @@ -40,14 +40,14 @@ make_upfrom_script(Name, ToVsn, UpFromVsn, State) -> WarningsAsErrors = rlx_state:warnings_as_errors(State), Options = [{outdir, OutDir}, {path, [filename:join([OutputDir, "*", "lib", "*", "ebin"])]}, - {silent, true} | case WarningsAsErrors of + silent | case WarningsAsErrors of true -> [warnings_as_errors]; false -> [] end], CurrentRel = strip_dot_rel(find_rel_file(Name, ToVsn, OutputDir)), UpFromRel = strip_dot_rel(find_rel_file(Name, UpFromVsn, OutputDir)), ?log_debug("systools:make_relup(~p, ~p, ~p, ~p)", [CurrentRel, UpFromRel, UpFromRel, Options]), - case systools:make_relup(CurrentRel, [UpFromRel], [UpFromRel], [no_warn_sasl | Options]) of + case systools:make_relup(CurrentRel, [UpFromRel], [UpFromRel], Options) of ok -> ?log_info("relup from ~s to ~s successfully created!", [UpFromRel, CurrentRel]), {ok, State};