[Rpm-maint] [rpm-software-management/rpm] RFE: don't prevealuate lua macros (#556)
Jeff Johnson
notifications at github.com
Tue Oct 2 10:08:38 UTC 2018
@jasontibbitts: %luamacro would need to be implemented as a co-routine because of rpm's embedded lua interpreter has a persistent global environment.
That is very different than shell code, where a sub-shell inherits but cannot change its parent's environment. With rpm+lua, all lua invocations run in the same globally persistent environment.
That is/was actually the intended feature so that variables in the lua context could be shared/passed between, say, %pre and %post scriptlets implemented using embedded lua.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/556#issuecomment-426220110
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20181002/de0b50aa/attachment.html>
More information about the Rpm-maint
mailing list