On Apr 7, 2009, at 4:14 AM, Ralf S. Engelschall wrote:


Why I would have expected:

$ rpm --eval "%{lua: rpm.source(\"/path/to/lua\") }"

Because the rpm.source() uses the internal luaL_loadfile() C function
and hence it does not require any escapings to be inside /path/to/lua.
While in your approach to me looks like one still has to apply escaping
for RPM macros within /path/to/lua...


This was actually what I thought about first. But I did --eval /path/ to/file.lua
because it was the easier/simpler path to "works".

OTOH, I will have to generalize to non-lua using magic or suffix detection or #! scraping, and will have to arrange for not only %{lua:...} but also other
wrappings like %(...) and %{tcl:...} etc etc pretty soon for --eval.

(aside)
I'd really like to make popt-1.15 mandatory so I don't have to
carry around 5+ more copies of poptReadFile() for portability.

Sure, I see no problem here...


I'll release popt-1.15 later this week then.

73 de Jeff
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to