Indeed, rpm.define() calls rpmDefineMacro() which is takes the macro name and 
the body as a single line - as you would get in a macro file. It doesn't make 
much sense as an API.

IIRC Lua's rpm.define() used that API because the other alternative lacked all 
the error checking back in the day, but things are quite different now, Lua 
should get a better define macro.

Note that this also works:
`macros['foo'] = 1`

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

Message ID: <rpm-software-management/rpm/issues/2962/2009523...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to