[Python-apps-team] Bug#1079039: mu-editor: Add Appstream metainfo announcing HW support

Petter Reinholdtsen pere at hungry.com
Mon Aug 19 09:51:34 BST 2024


Package: mu-editor
Version: 1.0.3+dfsg-6
Tags: patch
User: pere at hungry.com
Usertags: appstream-modalias

Here is a patch to add Appstream metainfo XML announcing the hardware
handled by this package.

Including this information in the package will ensure programs mapping
hardware to packages using Appstream information, like the isenkram
package, will know that this package is useful on machines where the
hardware is discovered.

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

  appstreamcli validate-tree  --no-net --explain debian/mu-editor

diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch
new file mode 100644
index 0000000..385b45b
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,19 @@
+Description: Added AppStream metainfo XML with hardware provide info.
+ This allow isenkram to propose this package when the relevant hardware is
+ present.
+Author: Petter Reinholdtsen
+Forwarded: no
+Last-Update: 2024-08-19
+---
+Index: mu-editor-salsa/conf/mu.appdata.xml
+===================================================================
+--- mu-editor-salsa.orig/conf/mu.appdata.xml   2024-08-19 08:48:10.541388291 +0000
++++ mu-editor-salsa/conf/mu.appdata.xml        2024-08-19 08:48:26.933584595 +0000
+@@ -26,4 +26,7 @@
+       <project_group>mu-editor</project_group>
+       <developer_name>Nicholas H.Tollervey</developer_name>
+       <translation type="gettext">mu</translation>
++      <provides>
++              <modalias>usb:v0D28p0204d*</modalias>
++      </provides>
+ </component>
diff --git a/debian/patches/series b/debian/patches/series
index b7958bf..3c6361c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -14,3 +14,4 @@ fix-semver-deprecation-warnings
 avoid-floats-for-int-arguments
 tests-reduce-builtin-mock-scope
 disable-microbit-mount-tests
+1000-appstream-metainfo.patch

-- 
Happy hacking
Petter Reinholdtsen



More information about the Python-apps-team mailing list