diff --git a/common/flatpak-installation.c b/common/flatpak-installation.c index 008c69f4..4ed28bdc 100644 --- a/common/flatpak-installation.c +++ b/common/flatpak-installation.c @@ -1762,7 +1762,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) && g_str_has_prefix (ref, "app")) flatpak_dir_run_triggers (dir_clone, cancellable, NULL); @@ -1935,7 +1935,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) && g_str_has_prefix (ref, "app")) flatpak_dir_run_triggers (dir_clone, cancellable, NULL); @@ -2083,7 +2083,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) && g_str_has_prefix (ref, "app")) flatpak_dir_run_triggers (dir_clone, cancellable, NULL); @@ -2685,8 +2685,8 @@ flatpak_installation_prune_local_repo (FlatpakInstallation *self, * * Run the trigger commands to update the files exported by the apps in * @self. Should be used after one or more app install, upgrade or - * uninstall operations with the #FLATPAK_INSTALL_FLAGS_NO_TRIGGERS, - * #FLATPAK_UPDATE_FLAGS_NO_TRIGGERS or #FLATPAK_UNINSTALL_FLAGS_NO_TRIGGERS + * uninstall operations with the %FLATPAK_INSTALL_FLAGS_NO_TRIGGERS, + * %FLATPAK_UPDATE_FLAGS_NO_TRIGGERS or %FLATPAK_UNINSTALL_FLAGS_NO_TRIGGERS * flags set. * * Since: 1.0.3 diff --git a/common/flatpak-installation.h b/common/flatpak-installation.h index 68de2f25..57ae39de 100644 --- a/common/flatpak-installation.h +++ b/common/flatpak-installation.h @@ -55,7 +55,7 @@ typedef struct * @FLATPAK_UPDATE_FLAGS_NO_STATIC_DELTAS: Don't use static deltas when pulling * @FLATPAK_UPDATE_FLAGS_NO_PRUNE: Don't prune the local OSTree repository after updating (Since: 0.11.8) * @FLATPAK_UPDATE_FLAGS_NO_TRIGGERS: Don't call triggers after updating. If used, - * the caller must later call @flatpak_installation_run_triggers to update + * the caller must later call flatpak_installation_run_triggers() to update * the exported files. (Since: 1.0.3) * * Flags to alter the behavior of flatpak_installation_update(). @@ -76,7 +76,7 @@ typedef enum { * @FLATPAK_INSTALL_FLAGS_NO_DEPLOY: Don't install any new builds that might be fetched * @FLATPAK_INSTALL_FLAGS_NO_PULL: Don't try to fetch new builds from the remote repo * @FLATPAK_INSTALL_FLAGS_NO_TRIGGERS: Don't call triggers after installing. If used, - * the caller must later call @flatpak_installation_run_triggers to update + * the caller must later call flatpak_installation_run_triggers() to update * the exported files. (Since: 1.0.3) * * Flags to alter the behavior of flatpak_installation_install_full(). @@ -94,7 +94,7 @@ typedef enum { * @FLATPAK_UNINSTALL_FLAGS_NONE: Default * @FLATPAK_UNINSTALL_FLAGS_NO_PRUNE: Don't prune the local OSTree repository after uninstalling * @FLATPAK_UNINSTALL_FLAGS_NO_TRIGGERS: Don't call triggers after uninstalling. If used, - * the caller must later call @flatpak_installation_run_triggers to update + * the caller must later call flatpak_installation_run_triggers() to update * the exported file. (Since: 1.0.3) * * Flags to alter the behavior of flatpak_installation_uninstall_full(). diff --git a/doc/reference/flatpak-sections.txt b/doc/reference/flatpak-sections.txt index edb35352..800fd9c4 100644 --- a/doc/reference/flatpak-sections.txt +++ b/doc/reference/flatpak-sections.txt @@ -48,6 +48,7 @@ flatpak_installation_prune_local_repo flatpak_installation_remove_local_ref_sync flatpak_installation_set_config_sync flatpak_installation_update_appstream_full_sync +flatpak_installation_run_triggers flatpak_get_default_arch flatpak_get_supported_arches flatpak_get_system_installations