mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-03 05:18:00 -05:00
update: Don't update related refs from different remote
In case you happen to have a reference A with a related reference B (say a runtime and a GL extension), and they come from different remotes, then updating A should not cause B to update from the same remote as A, but rather the current remote.
This commit is contained in:
@@ -687,6 +687,11 @@ flatpak_transaction_run (FlatpakTransaction *self,
|
||||
current_subpaths = flatpak_deploy_data_get_subpaths (deploy_data);
|
||||
op->subpaths = g_strdupv ((char **)current_subpaths);
|
||||
|
||||
/* Don't use the remote from related ref on update, always use
|
||||
the current remote. */
|
||||
g_free (op->remote);
|
||||
op->remote = g_strdup (flatpak_deploy_data_get_origin (deploy_data));
|
||||
|
||||
kind = FLATPAK_TRANSACTION_OP_KIND_UPDATE;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user