Package: bluez-firmware
Version: 1.2-12
Tags: patch
User: p...@hungry.com
Usertags: appstream-modalias

My original patch to add Appstream metainfo XML announcing the hardware
handled by this package had a mistake, caused by my unfortunate
cut-n-paste.  This patch solve the problem.  The problem was the
incorrect component type.  The desktop type is reserved for those with
.desktop files.  Without this patch, the appstream database do not
include the information provided.

The appstream metadata file can be checked using this command after
package build:

  appstreamcli validate-tree  --no-net --explain debian/bluez-firmware

diff --git a/debian/patches/1000-appstream-metainfo.patch 
b/debian/patches/1000-appstream-metainfo.patch
index e0a6bed..375ef2c 100644
--- a/debian/patches/1000-appstream-metainfo.patch
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -30,7 +30,7 @@ Index: bluez-firmware-salsa/org.bluez.firmware.metainfo.xml
 +++ bluez-firmware-salsa/org.bluez.firmware.metainfo.xml       2024-07-17 
19:21:54.913286397 +0200
 @@ -0,0 +1,14 @@
 +<?xml version="1.0" encoding="UTF-8"?>
-+<component type="desktop">
++<component>
 +  <id>org.bluez.firmware</id>
 +  <metadata_license>MIT</metadata_license>
 +  <name>bluez-firmware</name>

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to