build: Do not require appstream-util for metainfo version check

appstream-util is deprecated in favor of appstreamcli. The new tool
does not have a `validate-version` command, so implement the check
in directly in the check-version.py script.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3520>
This commit is contained in:
Florian Müllner
2024-10-21 02:33:33 +02:00
committed by Marge Bot
parent fd8d923a34
commit 7405f7c360
2 changed files with 11 additions and 9 deletions

View File

@ -69,12 +69,10 @@ if not meson.is_subproject()
gtk_update_icon_cache: true
)
if appstream_util.found()
meson.add_dist_script('build-aux/meson/check-version.py',
meson.project_version(),
'--type=metainfo',
'data/metainfo/org.gnome.Extensions.metainfo.xml.in')
endif
meson.add_dist_script('build-aux/meson/check-version.py',
meson.project_version(),
'--type=metainfo',
'data/metainfo/org.gnome.Extensions.metainfo.xml.in')
summary_dirs = {
'prefix': get_option('prefix'),