@peutch
Copy link

peutch commented Nov 16, 2020

Hi,

Using gnome-software (Ubuntu and Debian), some packages (currently openjdk-11-*) were sorting strangely in 'Downgrade' what seems for me an 'Upgrade'. Then I checked using the command line:

$ appstreamcli compare-versions 11.0.9.1+1-0ubuntu1 11.0.9+11-0ubuntu2
11.0.9.1+1-0ubuntu1 << 11.0.9+11-0ubuntu2
$ appstreamcli compare-versions 11.0.9.1 11.0.9
11.0.9.1 >> 11.0.9

I suspect that this is also related to:
https://gitlab.gnome.org/GNOME/gnome-software/-/issues/935
https://gitlab.gnome.org/GNOME/gnome-software/-/issues/876

Thanks