[Rpm-maint] [rpm-software-management/rpm] Accessing macro parameter from lua fails with "attempt to index a nil value (global 'opt')" (Issue #2446)

Panu Matilainen notifications at github.com
Thu Mar 23 10:18:21 UTC 2023


>From said documentation, emphasis added:

> Parametric Lua macros receive their options and arguments as two local tables opt and arg, where opt holds processed option values keyed by the option character, and arg contains arguments numerically indexed. These tables are always present regardless of whether options or arguments were actually passed to simplify use. (**rpm >= 4.17**)

So no, it wont work in 4.14.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2446#issuecomment-1480929834
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2446/1480929834 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230323/5db07a8c/attachment-0001.html>


More information about the Rpm-maint mailing list