File: replace-appstream-util.patch

package info (click to toggle)
startup-disk 0.1.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 404 kB
  • sloc: xml: 86; makefile: 62
file content (31 lines) | stat: -rw-r--r-- 924 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
From: NoisyCoil <noisycoil@debian.org>
Date: Wed, 11 Feb 2026 18:34:14 +0100
Subject: Replace appstream-util with appstreamcli

appstream-util is deprecated. Use appstreamcli instead.
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index c1736b2..dc3c42a 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ appdata-test:
 	gnome-software --show-metainfo=$(ROOTDIR)/res/$(APP_ID).metainfo.xml,icon=$(ROOTDIR)/res/$(APP_ID).svg
 
 appdata-validate:
-	appstream-util validate-strict res/$(APP_ID).metainfo.xml
+	appstreamcli validate --pedantic res/$(APP_ID).metainfo.xml
 
 build:
 	cargo build $(RUSTFLAGS)
@@ -26,7 +26,7 @@ check-bin:
 
 check-data:
 	desktop-file-validate res/$(APP_ID).desktop
-	appstream-util validate-relax --nonet res/$(APP_ID).metainfo.xml
+	appstreamcli validate --no-net --pedantic=no res/$(APP_ID).metainfo.xml
 
 clean:
 	rm -rf target