[Rpm-maint] [rpm-software-management/rpm] Implement a table-like shortcut to rpm macros in Lua (#1398)

Panu Matilainen notifications at github.com
Wed Oct 14 11:45:17 UTC 2020


> But then you should change the code so that it does not accept more than one argument. Everything else is not "identical" and does not match the user expectation.

Hmm. I fail to see the problem here, it's just a shortcut for building that string yourself, ie these two should be equal:

```
res = rpm.expand('%foo'..' '..opt..' '..arg1..' '..arg2)
res = macro.foo(opt, arg1, arg2)
```

We could of course have the latter understand other forms too, such as passing (opt, arg) tables (which again are just automatically flattened to the actual macro string).

-- 
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/1398#issuecomment-708347919
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201014/e83d2d03/attachment.html>


More information about the Rpm-maint mailing list