Bug 1702893

Summary: versions are not in order
Product: [Fedora] Fedora Reporter: Mattia Verga <mattia.verga>
Component: libappstream-glibAssignee: Richard Hughes <rhughes>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: klember, rhughes
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-25 12:51:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1700839    

Description Mattia Verga 2019-04-25 07:26:27 UTC
Rawtherapee build is failing because appstream-util thinks that 5.6 should be older than 5.6-rc2.
https://kojipkgs.fedoraproject.org//work/tasks/7008/34377008/build.log
? tag-invalid : <release> versions are not in order [5.6 before 5.6-rc2]

I've found a bug report upstream where it seems this should be fixed in 0.7.15, but clearly it isn't:
https://github.com/hughsie/appstream-glib/issues/234

Comment 1 Kalev Lember 2019-04-25 07:47:36 UTC
I believe appstream-util is correct here. rpm-vercmp also agrees with it:

$ rpmdev-vercmp 5.6 5.6-rc2
5.6 < 5.6-rc2

For 5.6 rc2 to be considered older than 5.6 you need a tilde in the version, so that it reads 5.6~rc2

Comment 2 Mattia Verga 2019-04-25 12:51:03 UTC
Ah, I misunderstood what I read in the upstream issue.

I will ask RawTherapee to correct the release naming using a tilde, or I will patch appstream file downstream.

Sorry for the noise.

Comment 3 Kalev Lember 2019-04-25 13:48:31 UTC
No problem at all!