File: use-appstreamcli.patch

package info (click to toggle)
iagno 1%3A3.38.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,680 kB
  • sloc: xml: 118; python: 15; makefile: 6
file content (40 lines) | stat: -rw-r--r-- 1,332 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 5b0cf5a27da18e903112fa1184479b4cfcb77c91 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor@gmail.com>
Date: Wed, 9 Apr 2025 20:19:55 +0200
Subject: [PATCH] Use appstream for appdata validation test

appstream-glib is under heavy maintenance mode and recommends using
appstream instead.
---
 data/meson.build | 6 +++---
 meson.build      | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

--- a/data/meson.build
+++ b/data/meson.build
@@ -67,11 +67,11 @@
 )
 
 # Validate AppData file
-if appstream_util.found()
+if appstreamcli.found()
   test(
-    'validate-appdata', appstream_util,
+    'validate-appdata', appstreamcli,
     args: [
-      'validate', '--nonet', appdata_file.full_path()
+      'validate', '--no-net', '--explain', appdata_file.full_path()
     ]
   )
 endif
--- a/meson.build
+++ b/meson.build
@@ -21,7 +21,7 @@
 posix_dependency = valac.find_library('posix')
 rsvg_dependency = dependency('librsvg-2.0', version: '>= 2.32.0')
 
-appstream_util          = find_program('appstream-util',        required: false)
+appstreamcli            = find_program('appstreamcli',          required: false)
 desktop_file_validate   = find_program('desktop-file-validate', required: false)
 glib_compile_schema     = find_program('glib-compile-schemas',  required: true) # useful?