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.
This commit is contained in:
Phaedrus Leeds
2020-08-14 17:40:17 -07:00
committed by Alexander Larsson
parent e16574c8ee
commit c6647c2b14

View File

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