[ostree] deploy: Don't run triggers if /usr/share/ostree/triggers-run exists
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] deploy: Don't run triggers if /usr/share/ostree/triggers-run exists
- Date: Mon, 4 Mar 2013 16:53:29 +0000 (UTC)
commit dba406bb8f7b5c6f9ffbe5354b5c5a264b16dc7a
Author: Colin Walters <walters verbum org>
Date: Mon Mar 4 11:52:43 2013 -0500
deploy: Don't run triggers if /usr/share/ostree/triggers-run exists
This is preparatory work for a future gnome-ostree commit where we'll
default to running triggers on the build server side.
src/ostree/ot-admin-builtin-deploy.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/ostree/ot-admin-builtin-deploy.c b/src/ostree/ot-admin-builtin-deploy.c
index 24bc0da..c2e3fe9 100644
--- a/src/ostree/ot-admin-builtin-deploy.c
+++ b/src/ostree/ot-admin-builtin-deploy.c
@@ -510,6 +510,7 @@ deploy_tree (OtAdminDeploy *self,
if (!skip_checkout)
{
ProcessOneCheckoutData checkout_data;
+ ot_lobj GFile *triggers_run_path = NULL;
g_print ("ostadmin: Creating deployment %s\n",
gs_file_get_path_cached (deploy_target_path));
@@ -529,8 +530,13 @@ deploy_tree (OtAdminDeploy *self,
if (checkout_data.caught_error)
goto out;
- if (!ostree_run_triggers_in_root (deploy_target_path_tmp, cancellable, error))
- goto out;
+ triggers_run_path = g_file_resolve_relative_path (deploy_target_path_tmp,
"usr/share/ostree/triggers-run");
+
+ if (!g_file_query_exists (triggers_run_path, NULL))
+ {
+ if (!ostree_run_triggers_in_root (deploy_target_path_tmp, cancellable, error))
+ goto out;
+ }
deploy_target_default_etc_path = ot_gfile_get_child_strconcat (deploy_target_path_tmp, "etc", NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]