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-...
- Panu -