mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 08:38:20 -05:00
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/507
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user