[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 07:58:29 UTC 2025
It's not entirely clear to me what you're trying to do here, an actual scriptlet example would be helpful.
But note that Lua scriptlets run in-process (for now), so they can't use stdin like normal scriptlets. File triggers using Lua work just fine, but Lua file triggers need to read their input by repeatedly calling rpm.next_file() function. A fact that .. seems entirely undocumented?
It's strange, my first thought was it's just lost in translation to man pages, I could've sworn that was in the original file triggers doc, but nope. It's just not documented. Perhaps because it's bit of a hack, but if its the only means available...
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/4029#discussioncomment-14866374
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/4029/comments/14866374 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20251103/16f6bb40/attachment.htm>
More information about the Rpm-maint
mailing list