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
|
From d832eaf1413cc8263d84a31ed90eb882b373d560 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sabri=20=C3=9Cnal?= <libreajans@gmail.com>
Date: Tue, 31 Oct 2023 19:56:04 +0300
Subject: [PATCH] appdata: use appstreamcli for appdata validation
appstream-util is obsoleted by appstreamcli.
---
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 8a4fc2a..c2e908d 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -42,11 +42,11 @@ appdata_file = i18n.merge_file(
install_dir: datadir / 'metainfo'
)
# Validate Appdata
-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', appdata_file.full_path()
]
)
endif
diff --git a/meson.build b/meson.build
index 6458d57..ad9fb32 100644
--- a/meson.build
+++ b/meson.build
@@ -25,7 +25,7 @@ dependency('libadwaita-1', version: '>= 1.4.0')
glib_compile_resources = find_program('glib-compile-resources', required: true)
glib_compile_schemas = find_program('glib-compile-schemas', required: true)
desktop_file_validate = find_program('desktop-file-validate', required: false)
-appstream_util = find_program('appstream-util', required: false)
+appstreamcli = find_program('appstreamcli', required: false)
cargo = find_program('cargo', required: true)
version = meson.project_version()
--
GitLab
|