File: use-appstreamcli.patch

package info (click to toggle)
ghex 46.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,740 kB
  • sloc: ansic: 12,423; xml: 72; sh: 38; makefile: 7
file content (40 lines) | stat: -rw-r--r-- 1,074 bytes parent folder | download
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
32
33
34
35
36
37
38
39
40
From f9f050b7e5607343bd6089099401a37b039779b4 Mon Sep 17 00:00:00 2001
From: Matthias Klumpp <matthias@tenstral.net>
Date: Sat, 3 May 2025 04:50:58 +0200
Subject: [PATCH] Use appstreamcli for validation instead of appstream-util

The appstream-util tool is deprecated and does not support recent
versions of the AppStream specification. This patch uses the more modern
tool.
---
 data/meson.build | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/data/meson.build b/data/meson.build
index dddda611..653b9fc6 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -81,15 +81,15 @@ appdata = i18n.merge_file(
   install: true
 )
 
-appstream_util_prg = find_program(
-  'appstream-util',
+appstreamcli_prg = find_program(
+  'appstreamcli',
   required: false
 )
 
-if appstream_util_prg.found()
+if appstreamcli_prg.found()
   test(
     'Validate appstream file',
-    appstream_util_prg,
-    args: ['validate-relax', '--nonet', appdata]
+    appstreamcli_prg,
+    args: ['validate', '--no-net', '--explain', appdata]
   )
 endif
-- 
GitLab