forked from Mirrors/flatpak-builder
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.tingping/wmclass
parent
51e14fe33b
commit
6793d90b82
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue