[gnome-software/wip/mak/metainfo-validate] tests: Make releases-not-in-order metainfo check non-fatal
- From: Matthias Klumpp <mak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/mak/metainfo-validate] tests: Make releases-not-in-order metainfo check non-fatal
- Date: Tue, 31 May 2022 22:47:33 +0000 (UTC)
commit 75e5b6632c3595143e8635c9a84577ec50c796a0
Author: Matthias Klumpp <matthias tenstral net>
Date: Wed Jun 1 00:47:00 2022 +0200
tests: Make releases-not-in-order metainfo check non-fatal
GNOME and AppStream version comparison clashes at the moment, so we make
this issue non-fatal for now to still benefit from the other validation
checks.
See https://gitlab.gnome.org/GNOME/gnome-software/-/merge_requests/1378
for some discussion about the issue.
data/metainfo/meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/data/metainfo/meson.build b/data/metainfo/meson.build
index eaa6a15f4..889bde1ff 100644
--- a/data/metainfo/meson.build
+++ b/data/metainfo/meson.build
@@ -7,13 +7,14 @@ i18n.merge_file(
install_dir: join_paths(get_option('datadir'), 'metainfo')
)
-if get_option('tests')
+if get_option('tests') and appstream.version().version_compare('>=0.15.5')
ascli_exe = find_program('appstreamcli')
test('gs-validate-metainfo',
ascli_exe,
args: ['validate',
'--pedantic',
'--no-net',
+ '--override=releases-not-in-order=info', # 42.rc > 42.0 for AppStream, which clashes with
GNOME versioning
'org.gnome.Software.metainfo.xml.in'],
workdir : meson.current_source_dir(),
suite: ['lib'],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]