On 4/14/20 5:17 PM, Miro Hrončok wrote:
On 14. 04. 20 15:30, Petr Pisar wrote:
I don't know what specific features of rpmdev-vercmp tool you need, but
version comparison is implemented in rpmvercmp() function of rpm library.

Exactly that, but without the need to use ctypes.


Note thought that rpmvercmp() can only compare the individual E, V and R segments one at the time. To compare an entire EVR string as a whole against another, you'll need something like rpm-python rpm.labelCompare():

https://github.com/rpm-software-management/rpm/blob/master/python/header-py.c#L902

        - Panu -
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to