mirror of
https://github.com/flatpak/flatpak.git
synced 2026-02-01 19:41:27 -05:00
When p2p is enabled, listing the remotes using flatpak_installation_list_remotes will include all types of remotes. However, this can lead to problems for the users since dynamic remotes (USB/LAN) may not be used always the same way that static ones are. For instance, when listing the refs in a remote, dyanmic ones cannot be listed by name; so any existent code that iterates through the list of remotes and lists the refs in them will not work properly. To avoid this situation, this patch makes the API method in question to return only static type remotes. Getting all remotes can still easily be accomplished by calling flatpak_installation_list_remotes_by_type with a 0-sized array (or by specifying all types). Closes: #1587 Approved by: mwleeds