From c6647c2b1437315df6d756feb493e71a17ce6d64 Mon Sep 17 00:00:00 2001 From: Phaedrus Leeds Date: Fri, 14 Aug 2020 17:40:17 -0700 Subject: [PATCH] transaction: Fix ordering of runtime uninstallation In case a transaction is uninstalling both an app and its runtime, properly ensure the app is uninstalled first. --- common/flatpak-transaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-transaction.c b/common/flatpak-transaction.c index b6d108ef..4d522818 100644 --- a/common/flatpak-transaction.c +++ b/common/flatpak-transaction.c @@ -2018,7 +2018,7 @@ add_deps (FlatpakTransaction *self, { /* If the runtime this app uses is already to be uninstalled, then this uninstall must happen before the runtime is uninstalled */ - if (runtime_op && op->kind == FLATPAK_TRANSACTION_OPERATION_UNINSTALL) + if (runtime_op && runtime_op->kind == FLATPAK_TRANSACTION_OPERATION_UNINSTALL) run_operation_before (op, runtime_op, 1); return TRUE;