[Rpm-maint] [rpm-software-management/rpm] Make parametric macro arguments available as native Lua table (#1063)
notifications at github.com
Tue Feb 11 10:18:57 UTC 2020
Accessing macro arguments via rpm.expand("%1") etc is tedious,
non-intuitive and subject to all sorts of expansion issues. Make
the argument macros available as a native Lua table (named "arg"
for consistency with -p <lua> scriptlet arguments) with their
literal values - the arguments are already macro-expanded, so if
further expansion is desired that is entirely up to the caller.
rpmluav indexes unfortunately start at 1, so this leaves out the
%0 macro from the arguments for sanity with the rest of the values.
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* Make parametric macro arguments available as native Lua table
-- File Changes --
M rpmio/macro.c (32)
M tests/rpmmacro.at (20)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rpm-maint