Hi, when I try to validate an appdata file, appdatacli
reports the following warning: “custom-key-duplicated Purism::form_factor”.
appstreamcli validate --pedantic data/io.github.mrvladus.List.metainfo.xml
E: @APP_ID@:16: custom-key-duplicated Purism::form_factor
Comparing the custom tags in that appdata file with those in many GNOME projects, they seem to be the same:
<custom>
<value key="Purism::form_factor">workstation</value>
<value key="Purism::form_factor">mobile</value>
</custom>
According to the Freedesktop documentation, the <custom/>
tag is an optional tag that serves as a key-value store for custom values not covered by the AppStream specification.
Here’s an example from the documentation:
<custom>
<value key="MyCorp::app_color">#FF0000</value>
<value key="MyCorp::special_id">284fd262-6870-42a6-89a4-b189d3109e3e</value>
</custom>
To resolve the “custom-key-duplicated” warning, I merged the Purism values like this, which made the error disappear:
<custom>
<value key="Purism::form_factor">workstation,mobile</value>
</custom>
Purism’s blog indicates that GNOME’s usage is valid.
In conclusion, my question is: Do I need to change the Purism::form_factor entries?