summaryrefslogtreecommitdiff
path: root/doc/Hooks
blob: 647dd5604e55c4716853de65ad49acc87b216823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
List of hooks currently being supported by Portato
==================================================

emerge:
-------
Called: When emerge or every other command given by e.g. the synccmd preference is being called.
Parameters:
	- string[] packages: Packages to emerge (includes "world", "system").
	- string[] command: The exact command to execute.
	- vte.Console console: The console the output will be written to.
	- function(string) -> None title_update: Function which updates the console title in the GUIs.

Return if override: Nothing


after_emerge:
-------------
Called: When the emerge process (or other - see emerge hook) is finished. 
Parameters:
	- string[] packages: The list of cpv's (plus "world", "system") which have been emerged. (Or not if it failed.)
	- int retcode: The return code of the command.

Return if override: Nothing
Comment: This uses an extra hook as emerge is started in an extra thread and thus all plugins being wanting to come "after" will be called while emerge is still running.

main:
-----
Called: When the main routine is being entered. Everything in the application is done inside this main routine. Hooks connecting "after" will be run, when the application is shutdown.
Parameters: None
Return if override: Nothing

Comment: DO NOT OVERRIDE :)
r> 2009-08-25Updated portugese translationAlberto Federman Neto1-650/+687 2009-08-15Update spanish translationDaniel Halens1-245/+258 2009-08-12Updated polish translationTomasz Osiński1-644/+680 2009-08-12Updated catalan translationRoger Calvó1-643/+676 2009-08-11Sync portage and the DB after emerge syncRené 'Necoro' Neumann1-0/+9 2009-08-11Do not show masking label, if the package is not in system anymoreRené 'Necoro' Neumann1-2/+2 2009-08-11Update turkish translationGürkan Gür1-640/+676 2009-08-11Fix handling of slots in /etc/portage/*René 'Necoro' Neumann2-2/+4 2009-08-11Fix package detailsRené 'Necoro' Neumann1-1/+1 2009-08-11Fix GPytage pluginRené 'Necoro' Neumann1-2/+2 2009-08-11Update translationRené 'Necoro' Neumann2-1112/+1120 2009-08-11Update changelogRené 'Necoro' Neumann1-0/+1 2009-08-10Fixed pt_BR translationAlberto Federman Neto1-2/+5 2009-08-10Add credits for translationRené 'Necoro' Neumann2-0/+2