diff options
author | Richard Hughes <richard@hughsie.com> | 2019-03-20 14:24:03 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2019-03-20 17:25:11 +0000 |
commit | 2eb9b8caf9ca22ac914b63f34fea5dd6da6f4e76 (patch) | |
tree | 6100a42b746b03dc25b80eb1b43ba4f97ab27097 /data | |
parent | a8598744d2c41329cc803ae5a91fdc0e7aa1c16d (diff) | |
download | appstream-glib-2eb9b8caf9ca22ac914b63f34fea5dd6da6f4e76.tar.gz |
Modernize the validation requirements
* Require <content_rating> for any desktop or console application
* Make <release> mandatory when validating
* Further relax style requirements
* Require description for desktop an console apps
This changes a lot of things that are now best practice for all apps, and
required to be included in Flathub.
Use `appstream-util validate-relax` to ignore some new failures and use
`appstream-util validate-strict` to bring them back.
Fixes: https://github.com/hughsie/appstream-glib/issues/263
Diffstat (limited to 'data')
-rw-r--r-- | data/tests/broken.appdata.xml | 4 | ||||
-rw-r--r-- | data/tests/intltool.appdata.xml.in | 13 | ||||
-rw-r--r-- | data/tests/success.appdata.xml | 13 |
3 files changed, 28 insertions, 2 deletions
diff --git a/data/tests/broken.appdata.xml b/data/tests/broken.appdata.xml index 126d419..f7a5386 100644 --- a/data/tests/broken.appdata.xml +++ b/data/tests/broken.appdata.xml @@ -9,11 +9,11 @@ <summary>Observe power management.</summary> <description> <ul> - <li>One</li> + <li>On</li> <li>two.</li> </ul> <p xml:lang="C"> - This application is awesome + Awesome! </p> <p> This application is awesome diff --git a/data/tests/intltool.appdata.xml.in b/data/tests/intltool.appdata.xml.in index 6033cc6..1c6cec0 100644 --- a/data/tests/intltool.appdata.xml.in +++ b/data/tests/intltool.appdata.xml.in @@ -30,4 +30,17 @@ <translation type="gettext">gnome-power-manager</translation> <url type="homepage">http://www.gnome.org/projects/gnome-power-manager/</url> <updatecontact>richard_at_hughsie.com</updatecontact> + <content_rating type="oars-1.1" /> + <releases> + <release date="2019-03-11" version="3.32.0"> + <description> + <p> + This is the first stable release for GNOME 3.32. + </p> + <ul> + <li>Appstream parsing is completely rewritten and now uses the new libxmlb library, instead of appstream-glib</li> + </ul> + </description> + </release> + </releases> </application> diff --git a/data/tests/success.appdata.xml b/data/tests/success.appdata.xml index e1ca97f..248b9e6 100644 --- a/data/tests/success.appdata.xml +++ b/data/tests/success.appdata.xml @@ -42,4 +42,17 @@ <url type="homepage">http://www.gnome.org/projects/gnome-power-manager/</url> <updatecontact>richard_at_hughsie.com</updatecontact> <project_group>GNOME</project_group> + <content_rating type="oars-1.1" /> + <releases> + <release date="2019-03-11" version="3.32.0"> + <description> + <p> + This is the first stable release for GNOME 3.32. + </p> + <ul> + <li>Appstream parsing is completely rewritten and now uses the new libxmlb library, instead of appstream-glib</li> + </ul> + </description> + </release> + </releases> </application> |