[Rpm-maint] [rpm-software-management/rpm] Add support for passing real local arguments to Lua scriptlets (#1383)

Panu Matilainen notifications at github.com
Mon Oct 5 13:54:22 UTC 2020


Up to now, any communication with Lua scriptlets has required use of global tables. This PR adds support for real argument passing via the internal rpmlua API and converts the install scriptlet machinery to use that.
This appears more of a cleanup than new functionality as such, but is a pre-requisite for #1092 .
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1383

-- Commit Summary --

  * Support passing true arguments to Lua scriptlets in the internal API
  * Pass install scriptlet arguments to Lua as real local arguments

-- File Changes --

    M lib/rpmscript.c (35)
    M rpmio/macro.c (2)
    M rpmio/rpmlua.c (24)
    M rpmio/rpmlua.h (2)
    M tests/rpmscript.at (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1383.patch
https://github.com/rpm-software-management/rpm/pull/1383.diff

-- 
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/pull/1383
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201005/1a43af12/attachment.html>


More information about the Rpm-maint mailing list