[Rpm-maint] [rpm-software-management/rpm] lua rpm_vercmp error message if second argument is broken (Issue #2165)
AvoidMe
notifications at github.com
Fri Aug 26 10:26:20 UTC 2022
I found a small issue while was playing with lua in rpm spec:
```
➜ rpm --eval "%{lua:rpm.interactive()}"
RPM Interactive Lua 5.4 Interpreter
> print(rpm.vercmp('1', '1'))
0
> print(rpm.vercmp('', '1'))
[string "<lua>"]:1: bad argument #1 to 'vercmp' (invalid version )
> print(rpm.vercmp('1', ''))
>
```
If first argument is wrong in `rpm.vercmp()` - meaningful error message as expected
if second argument is wrong - nothing happens and nil returned
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2165
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2165 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220826/5c49dc91/attachment.html>
More information about the Rpm-maint
mailing list