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: https://github.com/rpm-software-management/rpm/pull/1063 -- 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 -- https://github.com/rpm-software-management/rpm/pull/1063.patch https://github.com/rpm-software-management/rpm/pull/1063.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/1063
_______________________________________________ Rpm-maint mailing list [email protected] http://lists.rpm.org/mailman/listinfo/rpm-maint
