From 00fcc65157f54dfb6dfd8b0a76c7ce200decef83 Mon Sep 17 00:00:00 2001 From: Robert McQueen Date: Mon, 1 Oct 2018 14:09:15 +0100 Subject: [PATCH] installation: fix inverted logic in new _NO_TRIGGERS flag Philip Withnall wins today's gold star. Closes: #2162 Approved by: alexlarsson --- common/flatpak-installation.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/flatpak-installation.c b/common/flatpak-installation.c index ac62a254..01358603 100644 --- a/common/flatpak-installation.c +++ b/common/flatpak-installation.c @@ -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);