[Spacewalk-list] Debian package comparison failing.

Paul-Andre Panon paul-andre.panon at avigilon.com
Fri Jun 21 22:59:14 UTC 2019


On Fri, 21 Jun 2019 16:28:17 , Jay McCanta <J.McCanta at f5.com> wrote:

>We are seeing a version compare failure in spacewalk with two Debian
packages:
>                libtre5-0.8.0-3+deb7u1ubuntu1 and
>                libtre5-0.8.0-3ubuntu1

>Spacewalk says the second one is newer, but apt (and dpkg) say the first
one is newer.

>Looking at the version comparison code, which is in so many places, it
looks like there nothing that differentiates whether to use >the rpm
version algorithm or the Debian one.  Is this being looked at in the next
release?  It seems  that the two algorithms are >incompatible for some
release versions and none of the comparisons tests take into account
whether it is deb or rpm.

Hi Jay,

You might want to try out the updated rpm.rpmstrcmp stored procedure in
https://bugzilla.redhat.com/show_bug.cgi?id=1661347

I submitted that bug and the proposed fix (for PostgreSQL DBs) a while
back, but not soon enough to make it into 2.9. Hopefully it will make it
into the next release.

Cheers,

Paul-Andre




More information about the Spacewalk-list mailing list