You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actions plugin allows to execute external program for given libdnf5 hooks, but there seems to be no way to propagate an error back when the external program exits with non zero return code.
It would be interesting to have an option (in actions file format) to make dnf5 to raise an error when command returns non zero return code. Right now, the error is ignored.
Reasoning
I was exploring the actions plugin to see if I could implement etckeeper dnf5 integration this way, and it turns out that this error handing functionality is the only missing piece.
This is a good request.
Successful execution of some plugins (actions) is mandatory for further running of the program. Therefore it is necessary that the action has the possibility to interrupt the program.
Description
Actions plugin allows to execute external program for given libdnf5 hooks, but there seems to be no way to propagate an error back when the external program exits with non zero return code.
It would be interesting to have an option (in actions file format) to make dnf5 to raise an error when command returns non zero return code. Right now, the error is ignored.
Reasoning
I was exploring the actions plugin to see if I could implement etckeeper dnf5 integration this way, and it turns out that this error handing functionality is the only missing piece.
See https://bugzilla.redhat.com/show_bug.cgi?id=2326283#c3
Example
It could workd like this: by specifying
raise_error=1
dnf5 would stop the transaction.The text was updated successfully, but these errors were encountered: