forked from Mirrors/flatpak-builder
install: When installing app, if runtime update fails that is not fatal
For instance, if you're offline, but are installing a local app we should not fail if the update of the runtime fails. This fixes https://github.com/flatpak/flatpak/issues/507tingping/wmclass
parent
0bea92bd73
commit
9bb9534f00
|
@ -419,8 +419,11 @@ add_deps (FlatpakTransaction *self,
|
|||
/* Update if in same dir */
|
||||
if (dir_ref_is_installed (self->dir, full_runtime_ref, &runtime_remote))
|
||||
{
|
||||
flatpak_transaction_add_op (self, runtime_remote, full_runtime_ref, NULL, NULL, NULL,
|
||||
FLATPAK_TRANSACTION_OP_KIND_UPDATE);
|
||||
FlatpakTransactionOp *op;
|
||||
g_debug ("Updating dependent runtime %s", full_runtime_ref);
|
||||
op = flatpak_transaction_add_op (self, runtime_remote, full_runtime_ref, NULL, NULL, NULL,
|
||||
FLATPAK_TRANSACTION_OP_KIND_UPDATE);
|
||||
op->non_fatal = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue