[Rpm-maint] [rpm-software-management/rpm] Implement a table-like shortcut to rpm macros in Lua (#1398)

Michael Schroeder notifications at github.com
Mon Oct 19 09:04:40 UTC 2020


Regarding the macro call feature: I was going to suggest something like that. Perl, for example, offers both `system(STRING)` and `system(LIST)`. The STRING version uses the shell to do the call, so you get argument splitting and variable expansion. The LIST version does a verbatim call without any expansion.

Now I just need to convince you that:
- you should drop that misleading autojoin feature and just accept one optional argument which can either be a string or a table
- you should add a `rpmExpandThisMacro(rpmMacroContext mc, const char *n, ARGV_t args)` function which can be used to expand macro `n` with the provided args without needing the rpmExpand arg hackery. Note that this call would not expand the arguments.

Btw, what about builtins? They currently cannot be accessed.

-- 
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/1398#issuecomment-711883941
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201019/ba9fac0f/attachment.html>


More information about the Rpm-maint mailing list