From e597fee6295c4334214b306acbbf8dabff67c4da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= Date: Tue, 28 Dec 2021 19:32:31 +0100 Subject: [PATCH] Try to use io.open() in pre scriptlet instead of rpm.open() --- authselect.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/authselect.spec b/authselect.spec index 067c3c4..6e74462 100644 --- a/authselect.spec +++ b/authselect.spec @@ -3,7 +3,7 @@ Name: authselect Version: 1.3.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Configures authentication and identity sources from supported profiles URL: https://github.com/authselect/authselect @@ -284,7 +284,7 @@ os.remove(force_file) -- Check if this is a new installation. if tonumber(arg[2]) == 1 then - f = rpm.open(force_file, "w") + f = io.open(force_file, "w") f:write("") f:close() end @@ -299,7 +299,7 @@ then comm = os.execute(authselect .. " version &> /dev/null") if comm ~= true then - f = rpm.open(force_file, "w") + f = io.open(force_file, "w") f:write("") f:close() end @@ -347,6 +347,9 @@ fi exit 0 %changelog +* Tue Dec 28 2021 Frantisek Zatloukal - 1.3.0-5 +- Try to use io.open() in pre scriptlet instead of rpm.open() (rpm >= 4.17.0) + * Tue Dec 21 2021 Frantisek Zatloukal - 1.3.0-4 - Use lua for pre scriptlets to reduce dependencies