[CentOS-devel] flatpak / appstream compat issues?

Wed Mar 6 02:12:31 UTC 2024
Leon Fauster <leonfauster at googlemail.com>

Does someone sees this behaviour?

$ /usr/bin/flatpak --user  remotes
Name    Optionen
fedora  oci
flathub


$ /usr/bin/flatpak --user search testtest
F: Failed to parse 
/srv/home/appuser/.local/share/flatpak/appstream/flathub/x86_64/active/appstream.xml.gz 
file: Fehler in Zeile 86745, Zeichen 136: <li> already set 'Protection 
against a common misconfiguration that tends to break apps, the ' and 
tried to replace with ' development variable'



Is EL9's flatpak compatible with flathub appstream data?
$ rpm -q flatpak appstream
flatpak-1.12.8-1.el9.x86_64
appstream-0.16.1-1.el9.x86_64


Found this: https://github.com/flatpak/flatpak/issues/5434


Workaround (vanishes on next update):

$ sed 's/<em>//' -i active/appstream.xml
$ sed 's/<\/em>//' -i active/appstream.xml
$ sed 's/<\/code>//' -i active/appstream.xml
$ sed 's/<code>//' -i active/appstream.xml
$ gzip -9 -c active/appstream.xml > active/appstream.xml.gz


$ /usr/bin/flatpak --user search testtest
No matches found


--
Leon