File: use-appstreamcli.patch

package info (click to toggle)
gnome-sound-recorder 43~beta-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,308 kB
  • sloc: javascript: 1,321; python: 20; xml: 15; makefile: 4
file content (31 lines) | stat: -rw-r--r-- 987 bytes parent folder | download | duplicates (2)
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