[devhelp/nonet-validate: 2/2] Disable network access for appstream-util
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/nonet-validate: 2/2] Disable network access for appstream-util
- Date: Fri, 9 Jul 2021 17:15:55 +0000 (UTC)
commit 4840d20ed3655b2ee4d80d2eb2f689389c9ae43a
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Jul 9 18:14:49 2021 +0100
Disable network access for appstream-util
We want to be able to validate the appdata file even when building the
Flatpak bundle.
data/meson.build | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index f76666ca..c6aeffb4 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -31,16 +31,14 @@ appdata_file = I18N.merge_file(
install_dir: get_option('datadir') / 'metainfo'
)
-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
+appstream_util = find_program('appstream-util', required: false)
+if appstream_util.found()
+ test('validate-appdata',
+ appstream_util,
+ args: ['validate-relax', '--nonet', appdata_file],
+ workdir: meson.current_build_dir(),
+ depends: appdata_file,
+ )
endif
desktop_conf = configuration_data()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]