From 2a04ac6d2e0e63317fc3cc30462658c2d0376631 Mon Sep 17 00:00:00 2001 From: slioch Date: Wed, 4 Mar 2009 09:42:32 -0800 Subject: modified environment variable setting for action on nodes. --- src/commit2.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/commit2.c') diff --git a/src/commit2.c b/src/commit2.c index 5e75151..35f609d 100644 --- a/src/commit2.c +++ b/src/commit2.c @@ -337,12 +337,15 @@ process_func(GNode *node, gpointer data) if (result->_action == delete_act) { - setenv(ENV_ACTION_NAME,ENV_ACTION_DELETE,1); set_in_delete_action(TRUE); } + if (IS_DELETE(d->_operation)) { + setenv(ENV_ACTION_NAME,ENV_ACTION_DELETE,1); + } else { setenv(ENV_ACTION_NAME,ENV_ACTION_SET,1); } + status = execute_list(c->_def.actions[result->_action].vtw_list_head,&c->_def); if (result->_action == delete_act) { set_in_delete_action(FALSE); -- cgit v1.2.3