[Rpm-maint] [rpm-software-management/rpm] Allow to call lua functions from the expresion parser (PR #1834)

Michael Schroeder notifications at github.com
Wed Nov 17 13:58:27 UTC 2021


Lua functions start with a "lua:" prefix. The result of the function call is always stringified, nil is translated to the empty string.

You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add support for functions to the expression parser
  * Refactor arg handling in rpmluaHook
  * Add rpmluaCallStringFunction() allowing to call a generic lua function
  * Allow to call lua functions from the expresion parser

-- File Changes --

    M rpmio/expression.c (118)
    M rpmio/rpmlua.c (187)
    M rpmio/rpmlua.h (3)
    M tests/rpmmacro.at (11)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1834.patch
https://github.com/rpm-software-management/rpm/pull/1834.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/1834
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20211117/9d6a2c07/attachment-0001.html>


More information about the Rpm-maint mailing list