[gnome-music/wip/jfelder/meson-appstream] meson: Relax appdata file validation
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/meson-appstream] meson: Relax appdata file validation
- Date: Thu, 23 May 2019 09:25:26 +0000 (UTC)
commit 864c9f3fab0a52b573156e5079f60f6c7ca70a48
Author: Jean Felder <jfelder src gnome org>
Date: Thu May 23 11:16:50 2019 +0200
meson: Relax appdata file validation
With the introduction of release notes in the appstream file with
release 3.33.2, the validation of the appstream file fails because of
some "style-invalid" warnings (some lines being too long or too
short).
This can be prevented by switching to the "validate-relax" option from
appstream-util.
data/meson.build | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index b85bdec7..dcf0bc31 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -60,12 +60,12 @@ i18n.merge_file(
)
# Validating the appdata file
-appstreamcli = find_program(['appstreamcli', 'appstream-util'], required: false)
-if appstreamcli.found()
+appstream_util = find_program('appstream-util', required: false)
+if appstream_util.found()
test (
'Validate appdata file',
- appstreamcli,
- args: ['validate', join_paths(meson.current_build_dir (), APPLICATION_ID + '.appdata.xml')]
+ appstream_util,
+ args: ['validate-relax', join_paths(meson.current_build_dir (), APPLICATION_ID + '.appdata.xml')]
)
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]