[Rpm-maint] [rpm-software-management/rpm] Add shorthand macros for some conventient Lua string operations (PR #2181)

Panu Matilainen notifications at github.com
Mon Sep 12 10:25:15 UTC 2022


Yet another question is whether it'd be saner to just do to do a native Lua call doString() directly. It'd be a few lines more probably but then we could give saner error messages, eg

> $ ./rpm --eval "%sub x"
error: lua script failed: [string "sub"]:1: bad argument #2 to 'sub' (number expected, got no value)

The rest of the message is entirely reasonable but the "lua script failed" part is somewhat disorienting...

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

Message ID: <rpm-software-management/rpm/pull/2181/c1243530758 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220912/c58dbd37/attachment.html>


More information about the Rpm-maint mailing list