1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: Matthias Klumpp <matthias@tenstral.net>
Date: Sat, 3 May 2025 08:38:07 +0200
Subject: [PATCH] Use appstreamcli to validate metainfo data
The appstream-util tool is deprecated and should not be used for modern
MetaInfo data.
---
data/meson.build | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/data/meson.build b/data/meson.build
index 12c32af..da648e6 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -71,12 +71,12 @@ metainfo_file = i18n.merge_file(
install_dir: sound_recorder_datadir / 'metainfo'
)
-appstream_util = find_program('appstream-util', required: false)
-if appstream_util.found()
+appstreamcli = find_program('appstreamcli', required: false)
+if appstreamcli.found()
test(
- 'validate-metainfo', appstream_util,
+ 'validate-metainfo', appstreamcli,
args: [
- 'validate-relax', '--nonet', metainfo_file.full_path()
+ 'validate', '--no-net', '--explain', metainfo_file.full_path()
]
)
endif
|