[devhelp/appdata-validate] Disable appdata validation for Flatpak builds




commit 53cb1c25a766cb0e03fd4213da46036716a93b4a
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Jul 9 16:57:01 2021 +0100

    Disable appdata validation for Flatpak builds
    
    The build sandbox does not have a network connection, so the validation
    cannot reach the screenshots.

 data/meson.build | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index b8d7b555..f76666ca 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -31,14 +31,16 @@ appdata_file = I18N.merge_file(
   install_dir: get_option('datadir') / 'metainfo'
 )
 
-appstream_util = find_program('appstream-util', required: false)
-if appstream_util.found()
-  test('validate-appdata',
-    appstream_util,
-    args: ['validate-relax', appdata_file],
-    workdir: meson.current_build_dir(),
-    depends: appdata_file,
-  )
+if not get_option('flatpak_build')
+  appstream_util = find_program('appstream-util', required: false)
+  if appstream_util.found()
+    test('validate-appdata',
+      appstream_util,
+      args: ['validate-relax', appdata_file],
+      workdir: meson.current_build_dir(),
+      depends: appdata_file,
+    )
+  endif
 endif
 
 desktop_conf = configuration_data()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]