File 0842-update_deprecations-The-script-silently-discarded-er.patch of Package erlang

From 6fa094e2a0fbeaff921a2d3b0c8c0928c867a2d8 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Wed, 19 Jan 2022 08:22:12 +0100
Subject: [PATCH 2/2] update_deprecations: The script silently discarded errors
 in file:write

---
 lib/stdlib/scripts/update_deprecations | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/stdlib/scripts/update_deprecations b/lib/stdlib/scripts/update_deprecations
index be8257980c..8d359da050 100755
--- a/lib/stdlib/scripts/update_deprecations
+++ b/lib/stdlib/scripts/update_deprecations
@@ -238,9 +238,7 @@ make_xml(Top, Type, OutFile, InfoText0) ->
     Collected = make_xml_collect(Depr, RelKey, InfoTextMap, []),
 
     All = make_xml_gen(lists:reverse(Collected), Type, OutDir),
-    file:write_file(OutFile, All),
-
-    ok.
+    ok = file:write_file(OutFile, All).
 
 make_xml_info([{Tag,M,F,A,Text} | Attributes], Tag) ->
     [{{M,F,A}, info_string(Text)} | make_xml_info(Attributes, Tag)];
-- 
2.31.1

openSUSE Build Service is sponsored by