Package: media-player-info
Verion: 25-1
Tags: patch
User: p...@hungry.com
Usertags: appstream-modalias

The Appstream validation report the following problem with the metadata
I submitted in BTS #1076991.

  Errors

  * gui-app-without-icon
    The component is a GUI application (application which has a .desktop
    file for the XDG menu and Type=Application), but we could not find a
    matching icon for this application.

  Warnings

  * asv-desktop-app-launchable-missing
    org.freedesktop.media_player_info.metainfo.xml -
    This `desktop-application` component is missing a `desktop-id`
    launchable tag. This means that this application can not be launched
    and has no association with its desktop-entry file. It also means no
    icon data or category information from the desktop-entry file will
    be available, which will result in this application being ignored
    entirely.
  * missing-launchable-desktop-file
    The MetaInfo file references a .desktop file with ID
    'org.freedesktop.media_player_info.desktop' in its launchable tag,
    but the file was not found in the same source tree. In order to be
    able to launch the software once it was installed, please place the
    MetaInfo file and its .desktop files in the same package. 

I am very sorry about this.  These block the metadata from being
included in the published database.  The metadata got the incorrect
component (cut-n-paste error on my part), and should look like this
instead:

--- media-player-info-25.orig/tools/mpi2appstream.py
+++ media-player-info-25/tools/mpi2appstream.py
@@ -48,7 +48,7 @@ for f in sys.argv[1:]:
     parse_mpi(f, modaliases)
 
 print("""<?xml version="1.0" encoding="UTF-8"?>
-<component type="desktop">
+<component>
   <id>org.freedesktop.media_player_info</id>
   <metadata_license>MIT</metadata_license>
   <name>media-player-info</name>

With the correct type, the file validates:

  % appstreamcli validate-tree  --no-net --explain debian/media-player-info
  org.freedesktop.media_player_info.metainfo.xml
    I: org.freedesktop.media_player_info:~: developer-info-missing
       This component contains no `developer` element with information
       about its author.


  ? Validation was successful: infos: 1, pedantic: 1
  %

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to