Skip to content

Support checksum instead of mtime for index file comparison - #175

Open
nteodosio wants to merge 4 commits into
ximion:masterfrom
nteodosio:chksum
Open

Support checksum instead of mtime for index file comparison#175
nteodosio wants to merge 4 commits into
ximion:masterfrom
nteodosio:chksum

Conversation

@nteodosio

Copy link
Copy Markdown
Contributor

This originates from a Launchpad request.

Mtime comparison causes a self-sustaining chain: Launchpad publisher publishes index files <-> Appstream generates new files (even if index file didn't change).

@nteodosio

Copy link
Copy Markdown
Contributor Author

This has been running reliably in our staging infrastructure for a couple of days. Here one log with the debug statements.

@nteodosio
nteodosio marked this pull request as ready for review July 2, 2026 13:59
@ximion

ximion commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Hi! I am currently on vacation and will properly review this later (11+ days), but one immediate thing: Can we use Blake3 for hashing, or a CRC-style checksum like XXH3 if that is sufficient? Then we don't gain an additional dependency, because appstream-compose already depends on blake3 (unless disabled).
See https://github.com/ximion/appstream/blob/main/compose/asc-utils.c#L110
Blake3 can also be faster, although in this case it doesn't really matter.

@nteodosio

nteodosio commented Jul 3, 2026 via email

Copy link
Copy Markdown
Contributor Author

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.

2 participants