From 9bb9534f00a4d83e3ffc5e77a36a0c696b89eb13 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 24 Jan 2017 09:46:26 +0100 Subject: [PATCH] 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 --- app/flatpak-transaction.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/flatpak-transaction.c b/app/flatpak-transaction.c index 7c569247..7d1dd282 100644 --- a/app/flatpak-transaction.c +++ b/app/flatpak-transaction.c @@ -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; } } }