Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various fixes related to Appstream data installation and ZSTD support #695

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

mcrha
Copy link

@mcrha mcrha commented Jan 16, 2025

There is already the ZSTD compression support built in, but it was not extended into the appstream data installation, which is the place the code will reach it first, because the ZSTD can be used in the repositories.

See the respective commits for the various fixes done along the way.

mcrha added 6 commits January 16, 2025 17:11
When the decompression finished, there can still be some data written
to the output buffer. Without passing it over, the output can be cut.
The dash (`-`) is used in the appstream generated files, thus expect it.

Related to ximion#683
Some parts of the code know of `.yaml*`, but this one knows only about `.yml*`.
The code knows of .yml* and .yaml* variants on various places, this one
was only missing. This fixes also a bug, when the YAML file was not compressed,
it was treated as XML.
The repo data can be compressed with ZSTD, thus teach the as_utils_install_metadata_file()
what to do with these files.
The as_utils_install_metadata_file() can install the .xml* data
re-saved, with added origin reference. When it does so, and the original
file was compressed, then the file name extension does not reflect
the file content anymore (it's a pure XML after re-saving, not
a compressed XML data). That can confuse the Appstream data readers,
thus rename the file to be .xml, to avoid this problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant