Re: [Rpm-maint] [rpm-software-management/rpm] rpm.execute should not treat the exit status as errno number (Issue #2528)

2023-06-13 Thread Panu Matilainen
Closed #2528 as completed via #2538. -- Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/2528#event-9513165486 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [Rpm-maint] [rpm-software-management/rpm] rpm.execute should not treat the exit status as errno number (Issue #2528)

2023-05-31 Thread Michael Schroeder
This came up because the systemd folks have transfiletrigger lua scripts that do stuff like: ``` assert(rpm.execute("udevadm", "control", "--reload")) ``` If the udevadm call fails, you'll get a weird error message like `Unknown error 16640` -- Reply to this email directly or view it on

[Rpm-maint] [rpm-software-management/rpm] rpm.execute should not treat the exit status as errno number (Issue #2528)

2023-05-31 Thread Michael Schroeder
rpm_execute does a `pushresult(L, status, NULL)`. `pushresult` expects the second argument to be either zero (call ok) or an errno number (call failed). (All the pushresult/pusherror calls seem to be somewhat bogus...) -- Reply to this email directly or view it on GitHub: