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
tingping/wmclass
Alexander Larsson 2017-01-24 09:46:26 +01:00
parent 0bea92bd73
commit 9bb9534f00
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}
}
}