[Rpm-maint] [rpm-software-management/rpm] bad version comparison in all rpm (#896)

Michael Schroeder notifications at github.com
Mon Oct 14 14:29:44 UTC 2019


No, that's correct. The `-` character compares the same as the `.` character, and 5  is greater than 1.

The `rpmvercmp` function only compares the version or the release parts. You need to split the input into epoch/version/release and then do individual rpmvercmp calls.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/896#issuecomment-541712610
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20191014/88360a38/attachment.html>


More information about the Rpm-maint mailing list