installation: fix inverted logic in new _NO_TRIGGERS flag

Philip Withnall wins today's gold star.

Closes: #2162
Approved by: alexlarsson
This commit is contained in:
Robert McQueen
2018-10-01 14:09:15 +01:00
committed by Atomic Bot
parent dd7a163a28
commit 00fcc65157

View File

@@ -1761,7 +1761,7 @@ flatpak_installation_install_full (FlatpakInstallation *self,
ostree_progress, cancellable, error))
goto out;
if ((flags & FLATPAK_INSTALL_FLAGS_NO_TRIGGERS) != 0 &&
if ((flags & FLATPAK_INSTALL_FLAGS_NO_TRIGGERS) == 0 &&
g_str_has_prefix (ref, "app"))
flatpak_dir_run_triggers (dir_clone, cancellable, NULL);
@@ -1937,7 +1937,7 @@ flatpak_installation_update_full (FlatpakInstallation *self,
ostree_progress, cancellable, error))
goto out;
if ((flags & FLATPAK_UPDATE_FLAGS_NO_TRIGGERS) != 0 &&
if ((flags & FLATPAK_UPDATE_FLAGS_NO_TRIGGERS) == 0 &&
g_str_has_prefix (ref, "app"))
flatpak_dir_run_triggers (dir_clone, cancellable, NULL);
@@ -2085,7 +2085,7 @@ flatpak_installation_uninstall_full (FlatpakInstallation *self,
cancellable, error))
return FALSE;
if ((flags & FLATPAK_UNINSTALL_FLAGS_NO_TRIGGERS) != 0 &&
if ((flags & FLATPAK_UNINSTALL_FLAGS_NO_TRIGGERS) == 0 &&
g_str_has_prefix (ref, "app"))
flatpak_dir_run_triggers (dir_clone, cancellable, NULL);