gs-app-query: Add an alternate-of property and use it to replace gs_plugin_add_alternates()/GS_PLUGIN_ACTION_GET_ALTERNATES
See the commit messages for details. This replaces gs_plugin_add_alternates()
/GS_PLUGIN_ACTION_GET_ALTERNATES
with a new GsAppQuery:alternate-of
property and use of GsPluginJobListApps
.
Most of the changes here are very straightforward and very similar to the previous additions to GsAppQuery
. The one slightly complex one is the implementation of GsAppQuery:alternate-of
in the snap plugin, where I had to make a few utility functions async. Since I don’t have a working snap setup, I haven’t tested those changes at runtime, but they do compile. It’s the responsibility of Ubuntu to make sure the plugin still works.
Signed-off-by: Philip Withnall pwithnall@endlessos.org
Helps: #1472