File: use-appstreamcli.patch

package info (click to toggle)
gnome-tetravex 1%3A3.38.2-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,336 kB
  • sloc: xml: 85; python: 14; sh: 7; makefile: 6
file content (48 lines) | stat: -rw-r--r-- 1,581 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
41
42
43
44
45
46
47
48
From dc80f452f68602fee929f39a96ffb26b07cb341c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sabri=20=C3=9Cnal?= <yakushabb@gmail.com>
Date: Thu, 2 May 2024 20:08:40 +0300
Subject: [PATCH] build: Use appstreamcli

- Use appstreamcli to validate apptada

More information: https://docs.flathub.org/docs/for-app-authors/metainfo-guidelines/#validation
---
 data/meson.build | 6 +++---
 meson.build      | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/data/meson.build b/data/meson.build
index b881e8a..7bd3f38 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -64,11 +64,11 @@ if get_option('build_gui')
                           po_dir: '../po')
 
   # 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
diff --git a/meson.build b/meson.build
index ad18066..7429621 100644
--- a/meson.build
+++ b/meson.build
@@ -32,7 +32,7 @@ endif
 # TODO build requires vala 0.46.3 for GLib vapi
 
 if get_option('build_gui')
-  appstream_util        = find_program('appstream-util',        required: false)
+  appstreamcli          = find_program('appstreamcli',          required: false)
   desktop_file_validate = find_program('desktop-file-validate', required: false)
 endif
 glib_compile_schema     = find_program('glib-compile-schemas',  required: true) # useful?
-- 
GitLab