[Rpm-maint] [rpm-software-management/rpm] RFE: don't prevealuate lua macros (#556)

nim-nim notifications at github.com
Fri Sep 28 12:22:01 UTC 2018


A rather annoying "feature" of the current lua integration is that the lua code is evaluated before executing any rpm section

So if you provide a lua macro that does not blindly pass arguments somewhere else, but does some test or processing on them

```specfile
%luamacro somevalue
```

will work and do what you'd expect

But if a packager takes your macro, and writes
```specfile
for value in somevalue othervalue ; do
  %luamacro ${value}
done
```
the processing will fail, because the lua code will process `${value}` and not `somevalue` followed by `othervalue`

So I'd rather see the lua code evaluated at the `%{lua:` entry point, instead of pre-evaluating like tight now.



-- 
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/issues/556
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180928/aa6f1f8d/attachment.html>


More information about the Rpm-maint mailing list