summaryrefslogtreecommitdiff
path: root/doc/Hooks
blob: e0469e94d5e798f233d530f654df54e9bdf5f06f (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
33
34
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.
	- portato.gui.wrapper.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.

open_ebuild:
------------
Called: When an ebuild window is opened.
Parameters:
	- portato.backend.Package package: The current package whose is going to be displayed.
	- Window parent: The parent window. Exact type depends on the frontend.

Return if override: Window-object which can be called by the frontends. Please see the explicit code to see what is expected.
Comment: If you want to override - do this only for ONE specific frontend.
mp;follow=1'>Makefile: re-include cgit.conf in cgit.mkJohn Keeping1-0/+2 2013-04-08Do not unnecessarily strdup() environment variablesLukas Fleischer1-15/+10 2013-04-08Maŕk cgit_environment members constLukas Fleischer2-12/+12 2013-04-08Return const char * in cgit_{httpscheme, hosturl, rooturl}()Lukas Fleischer3-9/+9 2013-04-08Update git to v1.8.2.1John Keeping4-5/+6 2013-04-07ui-blob: don't segfault when no path is givenJohn Keeping1-1/+1 2013-03-20Convert pager navigation into a unordered listLukas Fleischer3-9/+20 2013-03-20Makefile: remove CGIT-CFLAGS files in clean stageJason A. Donenfeld1-1/+1 2013-03-20ui-summary.c: Move urls variable into print_urls()Lukas Fleischer1-6/+14 2013-03-20Fix colspan valuesLukas Fleischer3-14/+28 2013-03-20html: check return value of writeJason A. Donenfeld1-2/+3 2013-03-20ui-shared: squelch compiler warning.Jason A. Donenfeld1-0/+1 2013-03-20cgit.mk: Use SHELL_PATH_SQ to run gen-version.shJohn Keeping1-1/+1 2013-03-20cgit.mk: don't rebuild everything if CGIT_VERSION changesJohn Keeping1-1/+8 2013-03-20ui-patch: use cgit_version not CGIT_VERSIONJohn Keeping1-1/+1 2013-03-20Makefile: re-use Git's Makefile where possibleJohn Keeping3-119/+80