Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Add ability to run lua scripts directly (#1273)

2020-10-05 Thread Jonathan Lebon
> But the actual scriptlet running machinery needs all manner of context that > only exists inside transactions and so is not meaningfully exportable, really. OK right, that's what I surmised. How big is that context? Are we talking about automatically defined variables? Is there some way we

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Add ability to run lua scripts directly (#1273)

2020-09-30 Thread Panu Matilainen
You can execute arbitrary Lua with rpmExpand() or --eval with a %{lua:...} macro as it is. But the actual scriptlet running machinery needs all manner of context that only exists inside transactions. -- You are receiving this because you are subscribed to this thread. Reply to this email

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Add ability to run lua scripts directly (#1273)

2020-06-26 Thread Dusty Mabe
Bump. We sure would like to make progress on this so that rpm-ostree can start supporting lua appropriately and not asking packagers to rewrite their scriptlets. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Add ability to run lua scripts directly (#1273)

2020-06-18 Thread Jonathan Lebon
Ahh yup, that looks promising. @pmatilai You mentioned in [this comment](https://github.com/rpm-software-management/rpm/issues/1215#issuecomment-628594473) that it's not considered public API. Would you be open to exposing them through a CLI switch for now? We could mark it experimental/hidden

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Add ability to run lua scripts directly (#1273)

2020-06-17 Thread ニール・ゴンパ
@hroncok has made interesting progress in #1215, you might want to check that. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] RFE: Add ability to run lua scripts directly (#1273)

2020-06-17 Thread Jonathan Lebon
It would be great if we could pass a lua script directly to rpm. The primary motivation for this is so that rpm-ostree can make use of this when running scriptlets. But I suspect it would also be useful for packagers to test their lua scripts more easily without having to rebuild an RPM each