Comment # 3 on bug 1197376 from
This is apparently the result of using rpmsort to sort versions, latest on top.

> /usr/lib/rpm/rpmsort -r <<'EOF'
> > 5.16.15-1
> > 5.17.0-1
> > 5.17.0-rc8-1
> > EOF
> 5.17.0-rc8-1
> 5.17.0-1
> 5.16.15-1

However if taking the version from rpm package, we can get correct result.
Please note that hypen is replaced by tilde.

> /usr/lib/rpm/rpmsort -r <<'EOF'
> > 5.16.15-1.1
> > 5.17~rc8-1.1
> > 5.17.0-1.1
> > EOF
> 5.17.0-1.1
> 5.17~rc8-1.1
> 5.16.15-1.1

So it appears that the hypen (-) in the version tag confused the sorting
algorithm since it is also used as the delimiter in NVR format
<Name>-<Version>-<Release>.

I will try to come up with a patch to replace hypen with tilde for the sort
comparsion in accordance with the naming in rpm package.

Thanks.


You are receiving this mail because: