[Rpm-maint] [rpm-software-management/rpm] Introduce convenient %gsub macro to wrap Lua's string.gsub() (#1764)

Panu Matilainen notifications at github.com
Fri Aug 27 08:03:23 UTC 2021


All I can say offhand is that we would certainly consider such a thing. Some initial thoughts:
- it raises the question as to which extent we should be wrapping Lua functionality in native macro level helpers such as this (eg this seems quite obviously useful, but where to draw the line)
- could we instead make the Lua functionality more easily accessible in general (a general theme in 4.17, work which got sadly interrupted by other stuff)
- you'd probably want to use `arg[n]` instead of `rpm.expand('%{?n})` for better control - for one, re-expanding the arguments tends to lead to %-escape hell as the arguments are already expanded once


-- 
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/1764#issuecomment-907009921
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210827/b0a83301/attachment.html>


More information about the Rpm-maint mailing list