diff options
author | Elena Reshetova <elena.reshetova@intel.com> | 2012-11-22 20:49:27 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-11-23 07:36:24 +0200 |
commit | d1d050a07312bde00ba0b7f93ee91fd7dceb867c (patch) | |
tree | cde55d4f7301fd140d9c4e0a74f9b6d21a2277a8 /plugins | |
parent | c0e95f1cedefd6d7522ef2cf7a2ada7c83821596 (diff) | |
download | rpm-d1d050a07312bde00ba0b7f93ee91fd7dceb867c.tar.gz |
Improving script related rpm plugin hooks.
Two new hooks added:
PLUGINHOOK_SCRIPT_PRE_FUNC
Called before script execution
PLUGINHOOK_SCRIPT_POST_FUNC
Called after script execution
Both hooks are called for externals and internal lua scripts.
POST hook is called even if script execution has failed and
the return code is given as an argument.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/plugin.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/plugin.h b/plugins/plugin.h index cf49f8a97..f7baf739e 100644 --- a/plugins/plugin.h +++ b/plugins/plugin.h @@ -26,4 +26,5 @@ rpmRC PLUGINHOOK_PSM_PRE_FUNC(rpmte te); rpmRC PLUGINHOOK_PSM_POST_FUNC(rpmte te); /*per script plugin hooks */ -rpmRC PLUGINHOOK_SCRIPT_SETUP_FUNC(char* path); +rpmRC PLUGINHOOK_SCRIPT_PRE_FUNC(const char* path, int type); +rpmRC PLUGINHOOK_SCRIPT_POST_FUNC(const char* path, int type, int res); |