New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strange compare-versions result in version 0.12.11 #288
Comments
|
That's likely unrelated, as GNOME Software doesn't use libappstream - it does look strange regardless though... |
|
Thanks! Do you mean also that this (runtime?) dependency is not necessary: |
|
Right same trouble with appstream-util: |
|
On Debian, GNOME Software actually needs both: appstream-glib (with libappsteam-glib) by GNOME Software directly, and AppStream's For the matter at hand, AppStream is using RPMs version comparison algorithm (unlike appstream-glib), and I am surprised that it doesn't handle the plus sign well. |
|
With the version comparison rewrite, $ appstreamcli vercmp 11.0.9.1+1-0ubuntu1 11.0.9+11-0ubuntu2
11.0.9.1+1-0ubuntu1 >> 11.0.9+11-0ubuntu2 |
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
The text was updated successfully, but these errors were encountered: