[gnome-music/wip/jfelder/meson-appstream: 4/4] 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: 4/4] meson: Relax appdata file validation
- Date: Wed, 25 Sep 2019 13:13:23 +0000 (UTC)
commit 6f5b762b550505b613b0d3790433c814c7435641
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. appstreamcli is removed because it does not have a
"relax" option.
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]