Control: tags -1 + patch

Here is a proposed debian/patches/1020-appstreamcli.patch solving the problem,
alongside a patch for d/control:

debian/patches/1020-appstreamcli.patch:

Description: Switch appstream metadata check to use appstreamcli.
 The appstream-util tool is intended for removal from Debian, while
 appstreamcli is maintained both upstream and in Debian.
Author: Petter Reinholdtsen <[email protected]>
Bug-Debian: https://bugs.debian.org/1119105
Forwarded: no

diff --git a/data/meson.build b/data/meson.build
index 68412a7..e78c744 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -35,8 +35,8 @@ appdata_file = i18n.merge_file(input: 
'@[email protected]'.format(app_id),
                                install_dir: datadir / 'metainfo',
                                po_dir: po_dir)
 
-appstream_util = find_program('appstream-util', required: false)
-if appstream_util.found()
-  test('Validate appdata.xml', appstream_util, args: ['--nonet', 
'validate-relax', appdata_file])
+appstreamcli = find_program('appstreamcli', required: false)
+if appstreamcli.found()
+  test('Validate appdata.xml', appstreamcli, args: ['validate', appdata_file])
 endif
 


diff --git a/debian/control b/debian/control
index c1d9368..8f800a9 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: net
 Priority: optional
 Maintainer: Debian QA Group <[email protected]>
 Build-Depends: debhelper-compat (= 13),
-               appstream-util (>= 0.7.2),
+               appstream,
                gettext (>= 0.19.6),
                libappstream-glib-dev,
                libcurl4-openssl-dev | libcurl-ssl-dev,

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to