[Rpm-maint] [rpm-software-management/rpm] Wrong version comparison (Issue #2574)

Mattia Verga notifications at github.com
Sun Jul 16 18:38:12 UTC 2023


I may well be the intended behavior, but my opinion is that it is really confusing.
For example,
```
$ rpmdev-vercmp 1.7.0a 1.7.0b
1.7.0a < 1.7.0b
```
is quite understandable, as it is evaluated as `rpmdev-vercmp 1.7.0.a 1.7.0.b`, but 
```
$ rpmdev-vercmp 1.7.0.1a 1.7.0.ab
1.7.0.1a > 1.7.0.ab
```
it's not because RPM evaluates that as `rpmdev-vercmp 1.7.0.1.a 1.7.0.0.ab`, which is not what any user would think.

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

Message ID: <rpm-software-management/rpm/issues/2574/1637159832 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230716/e1a7bd33/attachment-0001.html>


More information about the Rpm-maint mailing list