diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-12-06 11:03:54 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-12-06 11:03:54 +0000 |
commit | 72aba76bde1fe1e79c35d0c80c79ac16a1db0639 (patch) | |
tree | 231b2876ab96022876f6d6c3e185a42611ef29a4 /man/ebuild.5 | |
parent | 07aa28581d9153a49e33661830d4929a94d59176 (diff) | |
download | portage-72aba76bde1fe1e79c35d0c80c79ac16a1db0639.tar.gz portage-72aba76bde1fe1e79c35d0c80c79ac16a1db0639.tar.bz2 portage-72aba76bde1fe1e79c35d0c80c79ac16a1db0639.zip |
Bug #295715 - Implement a register_success_hook function to complement
register_die_hook, and also add code to ensure the die hooks are called even
when the failure is on the python side (like for file collisions).
(trunk r14936)
svn path=/main/branches/2.1.7/; revision=14950
Diffstat (limited to 'man/ebuild.5')
-rw-r--r-- | man/ebuild.5 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/man/ebuild.5 b/man/ebuild.5 index 4d5cf518c..0f4de96f2 100644 --- a/man/ebuild.5 +++ b/man/ebuild.5 @@ -703,6 +703,17 @@ VERINS="$(best_version net\-ftp/glftpd)" .br (VERINS now has the value "net\-ftp/glftpd\-1.27" if glftpd\-1.27 is installed) .RE +.SH "HELPER FUNCTIONS: HOOKS" +.TP +\fBregister_die_hook\fR \fI[list of function names]\fR +Register one or more functions to call when the ebuild fails for any reason, +including file collisions with other packages. +.TP +\fBregister_success_hook\fR \fI[list of function names]\fR +Register one or more functions to call when the ebuild builds and/or installs +successfully. +.TP +.RE .SH "HELPER FUNCTIONS: OUTPUT" .TP \fBeinfo\fR \fI"disposable message"\fR |