hughsie / appstream-glib

This library provides objects and helper methods to help reading and writing AppStream metadata.
GNU Lesser General Public License v2.1
65 stars 103 forks source link

GNOME versioning scheme leads to "versions are not in order" #417

Open sophie-h opened 3 years ago

sophie-h commented 3 years ago
$ appstream-util validate-relax org.gnome.Software.appdata.xml 
org.gnome.Software.appdata.xml: FAILED:
• tag-invalid           : <release> versions are not in order [40 before 40.rc]
Validation of files failed
hughsie commented 3 years ago

On Fedora we use librpm to do the vercmp, but on other distros we fall back to a more naive implementation. Unfortunately for rpm:

$ rpmdev-vercmp 40 40.rc
40 < 40.rc