File: use-appstreamcli.patch

package info (click to toggle)
clapper 0.8.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,604 kB
  • sloc: ansic: 25,139; python: 524; xml: 496; javascript: 18; sh: 10; makefile: 9
file content (31 lines) | stat: -rw-r--r-- 1,057 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 c7790d9f7bce0158e4e3902677357df433985ef7 Mon Sep 17 00:00:00 2001
From: Matthias Klumpp <matthias@tenstral.net>
Date: Sat, 3 May 2025 01:56:53 +0200
Subject: [PATCH] Use modern appstream, instead of appstream-util for
 validation

---
 src/bin/clapper-app/data/meson.build | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/bin/clapper-app/data/meson.build b/src/bin/clapper-app/data/meson.build
index 22177e9c..99f30fef 100644
--- a/src/bin/clapper-app/data/meson.build
+++ b/src/bin/clapper-app/data/meson.build
@@ -1,10 +1,11 @@
-appstream_util = find_program('appstream-util', required: false)
-if appstream_util.found()
+appstream_cli = find_program('appstreamcli', required: false)
+if appstream_cli.found()
   test('Validate appstream file',
-    appstream_util,
+    appstream_cli,
     args: [
-      'validate-relax',
-      '--nonet',
+      'validate',
+      '--no-net',
+      '--explain',
       join_paths(meson.current_source_dir(), 'metainfo', 'com.github.rafostar.Clapper.metainfo.xml'),
     ]
   )