summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhaedrus Leeds <matthew.leeds@endlessm.com>2020-08-14 17:40:17 -0700
committerAlexander Larsson <alexander.larsson@gmail.com>2020-08-31 16:26:12 +0200
commitc6647c2b1437315df6d756feb493e71a17ce6d64 (patch)
tree34eaf567c6b182289586ede165c81e6200742aa7
parente16574c8eed889e51052674315a7f793526459c6 (diff)
downloadflatpak-c6647c2b1437315df6d756feb493e71a17ce6d64.tar.gz
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.
-rw-r--r--common/flatpak-transaction.c2
1 files changed, 1 insertions, 1 deletions
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;