flatpak: dependency sources
This does not look quite right:
/* add the counterpart installations */
for (guint i = 0; i < priv->flatpaks->len; i++) {
GsFlatpak *flatpak_tmp = g_ptr_array_index (priv->flatpaks, i);
if (flatpak_tmp == flatpak)
continue;
installation = gs_flatpak_get_installation (flatpak_tmp);
flatpak_transaction_add_dependency_source (transaction, installation);
}
It always treats all installations as dependency sources for each other. What we really want to do is treat system installations as depencency sources for user installations but not the other way around. You should just call flatpak_transaction_add_default_dependency_sources, really.