[Rpm-maint] [rpm-software-management/rpm] rpm.execute() and rpm.spawn() seem unsuitable for file triggers (Discussion #4029)
Panu Matilainen
notifications at github.com
Tue Nov 4 12:01:56 UTC 2025
> Frankly I don't need either shell or lua for these since everything will be delegated to a helper binary anyway. If rpm had a third way to execute an external program for a file trigger (with appropriate handling to skip if the binary isn't installed and some way to pass extra options), that'd be even better than shell or lua.
You can set an arbitrary program as the scriptlet interpreter, but then it'll need to handle the $1 / $2 arguments the way rpm passes them, I don't remember if additional options can be passed. We're not going to add more ways to run scripts just for minor convenience's sake.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/4029#discussioncomment-14868775
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/4029/comments/14868775 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20251104/5000f569/attachment.htm>
More information about the Rpm-maint
mailing list