[gnome-music/wip/jfelder/meson-appstream] meson: Relax appdata file validation



commit 98c0e6bf506b972781023bf177d2644d6319ca75
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]