mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-24 08:29:34 -04:00
In order to provide a transition path for repositories to add collection IDs to themselves and propagate those collection IDs to clients’ remote configurations, add another repo config key which controls whether the repository’s collection ID is published. If xa.collection-id is set in the repo’s published metadata, the client will update its configuration to the given ID — but only if no ID is set already. This is a one-time transition to prevent malicious repositories from remotely changing the user’s configuration to associate their remote with a well-known collection ID they don’t own. Add a test for this. Signed-off-by: Philip Withnall <withnall@endlessm.com>