[Rpm-maint] [rpm-software-management/rpm] error: invalid version: v"3" (but only in a a complex conditional) (Issue #1883)
Michael Schroeder
notifications at github.com
Fri Jan 14 08:35:28 UTC 2022
Yes, here's a smaller reproducer:
```
rpm --eval '%[v"0" && v"0"]'
```
This happens because getValuebuf() returns an empty string if RPMEXPR_DISCARD is set.
A fix could be to change the valueMakeVersion() call to:
```
v = valueMakeVersion(state->flags & RPMEXPR_DISCARD ? "0" : temp);
```
Or we can change getValuebuf to return "0" instead of "" if RPMEXPR_DISCARD is set.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1883#issuecomment-1012914507
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/1883/1012914507 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220114/3c3b9641/attachment.html>
More information about the Rpm-maint
mailing list