[Rpm-maint] [rpm-software-management/rpm] Add rpmlua wrapper command for running our Lua interpreter standalone (PR #1867)

Miro Hrončok notifications at github.com
Wed Jan 26 16:30:48 UTC 2022


iLua has been fixed on rawhide (Koji repo only for now).

```
$ mock -r fedora-rawhide-x86_64 --addrepo='https://download.copr.fedorainfracloud.org/results/pmatilai/rpm-snapshot/fedora-rawhide-$basearch/' --enablerepo=local install /usr/bin/rpmlua /usr/bin/ilua
$ mock -r fedora-rawhide-x86_64 shell --unpriv
...
<mock-chroot> sh-5.1$ cat rpmlua-wrapper 
#!/usr/bin/sh -eu
/usr/bin/rpmlua -e 'package.path =  os.getenv("LUA_PATH") .. ";" .. package.path' "$@"

<mock-chroot> sh-5.1$ ilua -i /builddir/rpmlua-wrapper
Jupyter console 6.4.0

ILua 0.2.1
In [1]: rpm.expand
Out[1]: <function 1>

In [2]: rpm.expand('%_arch')
Out[2]: "x86_64"
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1867#issuecomment-1022371052
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/1867/c1022371052 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220126/b43ce993/attachment.html>


More information about the Rpm-maint mailing list