mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 16:48:33 -05:00
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:
committed by
Atomic Bot
parent
dd7a163a28
commit
00fcc65157
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user