Description of problem: Upstream included appdata in the package but Gnome Software will not display it. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Remove downstream appstream in favour of upstream 2. 3. Actual results: Not displaying on Gnome Software Expected results: Gnome Software should list gimp-elsamiko as addon Additional info: https://apps.fedoraproject.org/packages/gimp-elsamuko/sources/
Looking at the directory, the metainfo.xml is listed with full specification. $ ls /usr/share/appdata/ | grep elsamuko gimp-elsamuko.metainfo.xml Spec from upstream is <?xml version="1.0" encoding="UTF-8"?> <component type="addon"> <id>gimp-elsamuko</id> <extends>gimp.desktop</extends> <name>gimp-elsamuko</name> <summary>Collection of GIMP scripts</summary> <url type="homepage">https://sites.google.com/site/elsamuko/gimp</url> <url type="bugtracker">https://github.com/elsamuko/gimp-elsamuko/issues</url> <metadata_license>CC0-1.0</metadata_license> <project_license>GPL-3.0+</project_license> </component> The installation worked but Gnome Software will still not display the addon.
We only show metainfo files for valid metainfo data that made it into the repodata; for this package I see https://github.com/hughsie/createrepo_as_logs/blob/master/g/gimp-elsamuko.log in the logs. Does "appstream-util validate *.metainfo.xml" work?
$ appstream-util validate-relax --nonet metainfo.xml metainfo.xml: Failed to parse /home/luya/rpmbuild/SOURCES/gimp-elsamuko-master/metainfo.xml file: Error on line 2 char 2: Document must begin with an element (e.g. <book>) I am confused with that part. Does that mean metainfo.xml included by upstream needs to be named as "gimp-elsamuko.metainfo.xml" as it appears to miss "gimp-elsamuko" as prefix? See
Take a loot at the upstream package: https://github.com/elsamuko/gimp-elsamuko/archive/master.zip
looking closer at the metainfo.xml, I managed to fix one problem (removal of invisible space) and face another issue $ appstream-util validate-relax --nonet metainfo.xml metainfo.xml: Failed to parse /home/luya/rpmbuild/SOURCES/gimp-elsamuko-master/metainfo.xml file: Error on line 4 char 7: <component> already set ' ' and tried to replace with ' ' It is hard to see where is the error as the ' ' is no where to see. Could it be that appstream-lib is somewhat broken?
After investigating the metainfo file from gimp-elsamuko, I removed further extra empty space and use tab which reduced the complain from appstream-lib. Appsteam-lib now complains about: $ appstream-util validate Downloads/gimp-elsamuko.metainfo.xml Downloads/gimp-elsamuko.metainfo.xml: FAILED: • tag-missing : <update_contact> is not present Validation of files failed Yet no where in the guidelines mentioned that tag within the add-on section: https://fedoraproject.org/wiki/Packaging:AppData http://freedesktop.org/software/appstream/docs/sect-Metadata-Addon.html However, using "appstream-util validate-relax --nonet " command solved the issue. I will submit the fix to upstream and will let you know when it is done.
Assigning this report to gimp-elsamuko. Upstream put the fix and test will be needed to check Gnome Software display that addon.
gimp-elsamuko-26-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a69c4d0f5b
Actually switch to gimp-elsamuko.
gimp-elsamuko-26-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a69c4d0f5b
gimp-elsamuko-26-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-4d7463de24
gimp-elsamuko-26-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
gimp-elsamuko-26-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.